/* ============================================================
   Elite Gym SaaS — Premium White & Red Design System
   Modern glassmorphism on white, vibrant red accents
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* ── Backgrounds ── */
    --bg-dark:          #f8fafc;              /* Off-white slate-50 base */
    --bg-card:          rgba(255,255,255,0.80); /* Translucent white glass */
    --bg-card-hover:    rgba(255,255,255,0.96);
    --bg-deep:          #ffffff;

    /* ── Glass Borders ── */
    --border-glass:       rgba(239,68,68,0.12);
    --border-glass-hover: rgba(239,68,68,0.35);

    /* ── Brand Colors ── */
    --primary:        #e11d48;               /* Vibrant Crimson Red */
    --primary-light:  #fb7185;               /* Rose 400 */
    --primary-glow:   rgba(225,29,72,0.22);
    --secondary:      #1e293b;               /* Deep Slate Charcoal */
    --secondary-glow: rgba(30,41,59,0.15);
    --accent:         #f43f5e;               /* Bright Rose accent */

    /* ── Text ── */
    --text-main:    #0f172a;                 /* Slate-900 high contrast */
    --text-muted:   #64748b;                 /* Slate-500 */
    --text-inverse: #ffffff;

    /* ── Gradients ── */
    --neon-gradient:  linear-gradient(135deg, var(--primary) 0%, #f97316 100%);
    --hero-gradient:  linear-gradient(135deg, #fff1f2 0%, #ffe4e6 40%, #fff7ed 100%);
    --card-gradient:  linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(254,242,242,0.7) 100%);

    /* ── Utils ── */
    --glass-blur:        18px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-card:       18px;
    --shadow-card:       0 4px 24px rgba(225,29,72,0.08), 0 1px 4px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 12px 40px rgba(225,29,72,0.16), 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Body ── */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 10% 0%, rgba(225,29,72,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(249,115,22,0.05) 0%, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover { color: var(--secondary); }

/* ── Glass Card ── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 28px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}
.glass-card:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--neon-gradient);
    color: #fff;
    box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(225,29,72,0.45);
    color: #fff;
}

.btn-secondary {
    background: rgba(30,41,59,0.06);
    color: var(--secondary);
    border: 1.5px solid rgba(30,41,59,0.18);
}
.btn-secondary:hover {
    background: rgba(30,41,59,0.12);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225,29,72,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm  { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg  { padding: 16px 36px; font-size: 1.05rem; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-control {
    width: 100%;
    background: rgba(248,250,252,0.9);
    border: 1.5px solid rgba(30,41,59,0.15);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--secondary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: #fff;
}
.form-control::placeholder { color: #94a3b8; }

select.form-control { cursor: pointer; }

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.text-center { text-align: center; }

/* ── Navbar ── */
.navbar {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(225,29,72,0.10);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(225,29,72,0.06);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-primary {
    background: rgba(225,29,72,0.10);
    color: var(--primary);
    border: 1px solid rgba(225,29,72,0.25);
}
.badge-secondary {
    background: rgba(30,41,59,0.08);
    color: var(--secondary);
    border: 1px solid rgba(30,41,59,0.18);
}
.badge-success {
    background: rgba(16,185,129,0.10);
    color: #059669;
    border: 1px solid rgba(16,185,129,0.25);
}
.badge-danger {
    background: rgba(225,29,72,0.10);
    color: var(--primary);
    border: 1px solid rgba(225,29,72,0.25);
}
.badge-warning {
    background: rgba(245,158,11,0.10);
    color: #d97706;
    border: 1px solid rgba(245,158,11,0.25);
}

/* ── Section dividers ── */
.section-heading {
    text-align: center;
    margin-bottom: 56px;
}
.section-heading h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 12px;
    color: var(--secondary);
}
.section-heading p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 10px;
}

/* ── Footer ── */
footer {
    border-top: 1px solid rgba(225,29,72,0.10);
    padding: 60px 0 30px;
    background: var(--secondary);
    margin-top: 80px;
    color: #94a3b8;
}

footer h4, footer .logo { color: #fff; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #f1f5f9;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

/* ── Tables ── */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    text-align: left;
}
.custom-table th {
    background: #fef2f2;
    padding: 14px 18px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid rgba(225,29,72,0.10);
}
.custom-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(30,41,59,0.06);
    font-size: 0.9rem;
    color: var(--secondary);
}
.custom-table tr:last-child td { border-bottom: none; }
.custom-table tr:hover td { background: #fff7f7; }

/* ── Stat Cards ── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--neon-gradient);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.stat-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }

/* ── Utility ── */
.w-100   { width: 100%; }
.mt-4    { margin-top: 16px; }
.mt-8    { margin-top: 32px; }
.mb-4    { margin-bottom: 16px; }
.gap-4   { gap: 16px; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.rounded { border-radius: 50%; }

/* ── Alert Boxes ── */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger   { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.alert-warning  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info     { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Hero section tint ── */
.hero-red-bg {
    background: var(--hero-gradient);
    position: relative;
}

/* ── Admin sidebar (white) ── */
.admin-sidebar {
    background: #fff;
    border-right: 1px solid rgba(225,29,72,0.10);
    min-height: 100vh;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 2px 0 12px rgba(225,29,72,0.04);
}
.admin-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.admin-sidebar .sidebar-link:hover,
.admin-sidebar .sidebar-link.active {
    background: #fff1f2;
    color: var(--primary);
}
.admin-sidebar .sidebar-link i { width: 18px; text-align: center; }

/* ── Responsive hamburger ── */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--secondary); border-radius: 2px; transition: var(--transition-smooth); }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links  { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(16px);
        padding: 20px 24px;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 8px 20px rgba(225,29,72,0.08);
        gap: 16px;
        z-index: 999;
    }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}
