:root {
    /* Your Brand Colors */
    --first-color: hsl(49, 100%, 41%);           /* Vibrant orange-yellow */
    --first-color-light: hsl(49, 100%, 61%);     /* Lighter version */
    --first-color-alt: hsl(49, 82%, 30%);        /* Slightly desaturated */
    --first-color-dark: hsl(48, 82%, 20%);       /* Deep base tone */
    --first-color-gray: hsl(79, 6%, 64%);        /* Neutral accent gray */
    
    /* Text & UI Colors */
    --title-color: hsl(180, 4%, 98%);            /* Near white for light text */
    --title-color-black: hsl(180, 4%, 12%);      /* Deep dark for headings */
    --text-color: hsl(180, 4%, 72%);             /* Light gray for body text */
    --text-color-light: hsl(180, 4%, 65%);       /* Subtle gray for secondary text */
    --body-color: hsl(180, 12%, 8%);             /* Very dark background */
    --drawer-bg: #22242c;                        /* Slightly lighter than body for contrast */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Desktop Navigation */
.desktop-nav {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--title-color);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

/* Search Bar */
.nav-search input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--title-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
    transition: border 0.3s ease;
}

.nav-search input:focus {
    border-color: var(--first-color-light);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--title-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 44px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: var(--title-color);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-link i {
    margin-right: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Trainer Profile & Logout */
.nav-actions {
    display: flex;
    align-items: center;
}

.trainer-profile {
    display: flex;
    align-items: center;
    color: var(--title-color);
    font-size: 0.9rem;
}

.trainer-profile i {
    margin-right: 8px;
    font-size: 1.4rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.12);
    color: var(--title-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    backdrop-filter: blur(4px);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.logout-btn i {
    margin-right: 8px;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--body-color);
    border-top: 1px solid var(--first-color-dark);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 8px 0;
}

.mobile-bottom-nav .nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--first-color-gray);
    text-decoration: none;
    padding: 8px 0;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.nav-item.active,
.nav-item:hover {
    color: var(--first-color-light);
}

/* Mobile Logo in Top Left */
.mobile-logo {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: var(--drawer-bg);
    z-index: 1100;
    transition: left 0.3s ease;
    border-right: 1px solid var(--first-color-dark);
}

.mobile-menu-drawer.open {
    left: 0;
}

.drawer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Drawer Logo */
.drawer-logo {
    text-align: center;
    padding: 20px 0;
}

.drawer-logo img {
    height: 50px;
    filter: brightness(1.3);
}

/* Navigation Links */
.drawer-nav {
    flex: 1;
    text-align: center;
}

.drawer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    gap: 8px;
}

.drawer-link:hover,
.drawer-link.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--first-color-light);
}

.drawer-link i {
    color: var(--first-color);
    font-size: 1.2rem;
}

.drawer-link span {
    color: var(--text-color);
    font-weight: 500;
}

/* Spacer above logout button */
.drawer-spacer {
    height: 20px;
}

/* Logout Button - Fully Centered (icon + text) */
.mobile-menu-drawer .p-3 {
    display: flex;
    justify-content: center;
    padding: 0 20px 20px;
}

.mobile-menu-drawer .btn {
    width: auto;
    min-width: 160px;
    padding: 12px 20px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.mobile-menu-drawer .btn i {
    margin: 0 !important;
    display: flex;
    align-items: center;
}

/* Overlay - Fully transparent (no screen darkening) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 25px 70px 25px;
}

.page-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--title-color);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--first-color) !important;
}

.card-header {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    color: var(--title-color);
    padding: 22px 28px;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.card-body {
    padding: 30px;
    color: var(--text-color);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    color: var(--title-color);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

/* Form Controls */
.form-control, .form-control-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--title-color);
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
}

.form-control:focus, .form-control-dark:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--first-color);
    color: var(--title-color);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

/* Responsive Display */
.d-md-block {
    display: block;
}
.d-md-none {
    display: none;
}

@media (max-width: 768px) {
    .d-md-block {
        display: none;
    }
    .d-md-none {
        display: block;
    }
    .main-content {
        padding: 70px 15px 70px 15px;
    }
    .form-control,
    .form-control-dark {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 1rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 1.05rem;
    }
    .card-body {
        flex-direction: column !important;
        text-align: center;
    }
    .card-body h5,
    .card-body p {
        text-align: center;
    }
}


/* Style for grouped input sections */
fieldset {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

legend {
    background: var(--body-color);
    padding: 0 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--first-color-light);
    border: none;
    width: auto;
}

/* Ensure legend is aligned with content */
fieldset .row {
    margin: 0;
}


/*=============== NAV TABS ===============*/
.nav-tabs .nav-link {
    color: var(--text-muted);
    background-color: transparent;
    border: 1px solid transparent;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    margin-bottom: -1px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--title-color);
    border-color: var(--border-color);
    background-color: var(--hover-bg);
}

/* ACTIVE TAB - Force override with !important */
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link.active:focus {
    color: var(--title-color) !important;
    background-color: var(--first-color-alt) !important;
    border-color: var(--border-color) !important;
    border-bottom-color: transparent !important;
    font-weight: 600;
    outline: none;
}



.card-body.text-light,
.card-body.text-light .badge,
.card-body.text-light small,
.card-body.text-light .text-muted {
    color: var(--title-color) !important;
}

.card-body.text-light .text-primary {
    color: #ffc107 !important;
}



/* Make sure table text is light */
.table-dark th,
.table-dark td {
    color: var(--title-color);
}

.table-dark .text-muted {
    color: #aaa !important;
}

/* Badge text in dark mode */
.badge.bg-primary,
.badge.bg-warning,
.badge.bg-success,
.badge.bg-danger {
    color: #fff;
}



/* =============================== join.php =========================== */

/* Fix dropdown menu text color */
.dropdown-item {
    color: #000 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #00c853 !important;
    color: #fff !important;
}

.dropdown-menu {
    background-color: #fff !important;
    border: 1px solid rgba(0,0,0,.15) !important;
}






/* =============================== pending-clients.php =========================== */
.avatar {
    border: 2px solid #0d6efd;
}

.table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.btn-confirm:hover {
    background-color: #198754 !important;
    color: white !important;
}


.section-header {
    color: var(--first-color) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--first-color);
    padding-bottom: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}