/* --- ENHANCED BELT STYLES (IBJJF) --- */
.belt-display {
    width: 140px;
    height: 30px;
    background: #444;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.belt-display .belt-body {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.belt-display .belt-tip {
    width: 45px;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 5px;
    z-index: 2;
}

.belt-display .stripe {
    width: 3px;
    height: 70%;
    background: #fff;
    border-radius: 1px;
}

/* Bicolor Stripe (Middle Strip) - Professional IBJJF Look */
.belt-display.bicolor::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 45px);
    /* Perfectly aligns before the black tip */
    height: 33%;
    background: var(--bicolor-strip);
    z-index: 1;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Belt Colors (New Variables for Flexibility) */
.belt-white {
    background-color: #f5f5f5 !important;
}

.belt-grey {
    background-color: #9e9e9e !important;
}

.belt-yellow {
    background-color: #ffeb3b !important;
}

.belt-orange {
    background-color: #ff9800 !important;
}

.belt-green {
    background-color: #4caf50 !important;
}

.belt-blue {
    background-color: #2196f3 !important;
}

.belt-purple {
    background-color: #9c27b0 !important;
}

.belt-brown {
    background-color: #795548 !important;
}

.belt-black {
    background-color: #111 !important;
    border-color: #333;
}

.belt-black .belt-tip {
    background-color: #d32f2f;
}

/* Goal Preview (Ghost Belt) */
.goal-preview {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.8;
}

.belt-ghost {
    filter: saturate(0.5) brightness(0.7);
    transform: scale(0.9);
    box-shadow: none;
    border-style: dashed;
}

.carencia-container {
    width: 100%;
    max-width: 300px;
    background: #111;
    height: 6px;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.carencia-bar {
    height: 100%;
    background: var(--accent);
    transition: width 1s ease;
}

:root {
    --bg-color: #050505;
    --card-bg: #141414;
    --card-glass: rgba(20, 20, 20, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    /* More subtle */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #FFD700;
    --primary: #D32F2F;
    --accent-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    --card-gradient: linear-gradient(145deg, #1a1a1a, #141414);
    /* Subtle depth */
    --font-head: 'Inter', sans-serif;
    /* Modern stack */
    --success: #00ff00;
    /* Neon Green */
    --success-glow: 0 0 15px rgba(0, 255, 0, 0.4);
}

* {
    box-sizing: border-box;
}

/* GLOBAL RESET & BACKGROUND FIX */
html {
    background-color: #050505 !important;
    height: 100%;
}

body {
    background-color: #000 !important;
    color: var(--text-primary);
    font-family: var(--font-head);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body.login-page {
    background-color: #000 !important;
}

.dashboard-container,
.content {
    background: transparent !important;
    /* Ensure transparency lets body bg show */
}

/* ... existing body/container styles ... */

/* Mobile Header */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    /* Glass header */
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-menu-btn {
    background: transparent;
    border: 1px solid #333;
    /* Visual cue */
    border-radius: 8px;
    color: #fff;
    font-size: 1.8rem;
    /* Larger icon */
    cursor: pointer;
    width: 50px;
    /* Explicit width */
    height: 44px;
    /* Explicit height (min touch target) */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: none;
    padding: 0;
}

.mobile-menu-btn:active {
    background: #222;
}

/* Glassmorphism Cards Enhanced */
.card,
.class-card {
    background: var(--card-bg) !important;
    /* Fallback */
    background: var(--card-glass) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    /* Softer corners */
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: var(--glass-border);
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Headings */
h1,
h2,
h3 {
    margin-top: 0;
    color: white;
    /* Clean white for readability */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    background: none;
    /* Remove text gradient for cleaner look, or keep if preferred */
    -webkit-text-fill-color: initial;
}

/* Match Cards */
.match-card {
    background: rgba(40, 40, 40, 0.4);
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: var(--glass-border);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    transition: transform 0.2s;
}

/* Hover effect only for active matches */
.match-card:not(.finished):hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.3);
}

.match-card.finished {
    /* opacity: 0.6; REMOVED - User complained it looks faded */
    /* filter: grayscale(0.8); REMOVED */
    border: 1px solid var(--success);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.competitor {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.competitor:hover {
    background: rgba(255, 255, 255, 0.05);
}

.competitor.winner {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border-left: 3px solid var(--success);
}

/* Invert gradient for right side */
.competitor:last-child.winner {
    background: linear-gradient(-90deg, rgba(0, 230, 118, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border-left: none;
    border-right: 3px solid var(--success);
}

.competitor strong {
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    background: #000;
    color: #555;
    font-weight: bold;
    font-size: 0.8em;
    letter-spacing: 1px;
    z-index: 20;
    /* Ensure on top of competitors */
}

/* BUTTONS */
.cta-button,
button {
    background: white;
    /* High contrast button */
    color: black;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.cta-button:active,
button:active {
    transform: scale(0.98);
    background: #e0e0e0;
}

/* INPUTS */
input,
select {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #333;
    background-color: #0f0f0f;
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #666;
    background-color: #141414;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Faixas */
.belt-badge {
    display: inline-flex;
    justify-content: space-between;
    /* Text left, tip right */
    align-items: center;
    height: 20px;
    /* Taller for text */
    width: 90px;
    /* Wider for text */
    border-radius: 2px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    padding-left: 6px;
    /* Spacing for text */
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
}

.belt-badge::after {
    content: '';
    width: 20%;
    height: 100%;
    background-color: black;
    display: block;
    margin-right: 0;
}

/* Cores das Faixas */
.belt-branca {
    background: #f0f0f0;
    color: #000;
}

.belt-branca::before {
    content: "";
}

.belt-azul {
    background: #0066cc;
    color: #fff;
}

.belt-azul::before {
    content: "";
}

.belt-roxa {
    background: #800080;
    color: #fff;
}

.belt-roxa::before {
    content: "";
}

.belt-marrom {
    background: #654321;
    color: #fff;
}

.belt-marrom::before {
    content: "";
}

.belt-preta {
    background: #111;
    border: 1px solid #333;
    color: #fff;
}

.belt-preta::before {
    content: "";
}

.belt-preta::after {
    background-color: #d82424;
}


/* Champion Overlay */
#champion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.champ-title {
    font-size: 2em;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.champ-name {
    font-size: 4em;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    margin: 0;
    text-align: center;
}

/* --- SIDEBAR STYLES (Moved from sidebar.php) --- */
/* --- FUTURISTIC FLOATING SIDEBAR --- */
.sidebar {
    width: 80px;
    /* Ultra-slim default */
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: fixed;
    left: 20px;
    top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    z-index: 5000;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.sidebar:hover {
    width: 240px;
    /* Expands on hover */
    background: rgba(10, 10, 10, 0.9);
    border-color: rgba(255, 215, 0, 0.2);
}

.sidebar .logo {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    transition: all 0.3s;
}

.logo-bjj {
    color: #fff;
    min-width: 45px;
}

.logo-expert {
    color: #ff4d4d;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    white-space: nowrap;
}

.sidebar:hover .logo-expert {
    opacity: 1;
    max-width: 200px;
    margin-left: 8px;
}

/* Student Area Special Styling */
.student-area-btn {
    border: 1px solid rgba(167, 139, 250, 0.2) !important;
    background: rgba(167, 139, 250, 0.05) !important;
    color: #a78bfa !important;
    margin-bottom: 5px;
}

.student-area-btn:hover {
    background: rgba(167, 139, 250, 0.1) !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 60px;
    width: 100%;
    text-decoration: none;
    color: #666;
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid transparent;
    position: relative;
    padding: 0 17px;
}

.nav-item .nav-text {
    opacity: 0;
    margin-left: 15px;
    white-space: nowrap;
    transition: opacity 0.3s, margin-left 0.3s;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    pointer-events: none;
}

.sidebar:hover .nav-item .nav-text {
    opacity: 1;
    margin-left: 20px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
}

.nav-item.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent);
    border-color: rgba(255, 215, 0, 0.2);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 15px var(--accent);
}

.nav-icon {
    font-size: 1.6rem;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-bottom: 20px;
}

.logout-btn:hover {
    background: rgba(255, 77, 77, 0.1) !important;
    color: #ff4d4d !important;
}

/* Legacy Top Bar hiding on PC */
@media (min-width: 769px) {
    .top-bar {
        display: none !important;
    }
}

/* Adjust Content to match floating sidebar */
.content {
    margin-left: 100px;
    padding-top: 40px;
    /* Initial space for floating bar */
    transition: margin-left 0.4s ease;
}

@media (min-width: 1200px) {
    .content {
        margin-left: 120px;
    }
}

/* --- CUSTOM TOAST NOTIFICATION --- */
.custom-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

.custom-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.logout-btn:hover {
    color: #ff4d4d !important;
    background: rgba(255, 77, 77, 0.1) !important;
    transform: translateX(5px) !important;
}

/* Content wrapper to adjust for fixed sidebar */
.dashboard-container {
    display: flex;
}

.content {
    margin-left: 250px;
    /* Same as sidebar width */
    flex: 1;
    padding: 30px;
    background: transparent;
    /* Was #f4f4f4, change to transp/dark to match theme */
    min-height: 100vh;
}

/* Responsividade Mobile e Refinamento Visual */

/* Mobile Nav Overlay (Drawer) */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: auto;
    box-shadow: none;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    width: 80%;
}

.mobile-nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-nav-links a.active {
    background: var(--primary, #D32F2F);
    /* Fallback */
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

/* Base Styles Adjustments */
/* Base Styles Adjustments - Merged into top, removing duplicates here */
/* Card Improvements */
.student-item {
    background: #181818 !important;
    /* Slightly darker than card */
    border: 1px solid #2a2a2a;
}

/* Responsive Queries */
@media (max-width: 768px) {

    /* Hide Sidebars */
    .sidebar {
        display: none !important;
    }

    /* Show Mobile Header */
    .mobile-header {
        display: flex;
    }

    /* Adjust Content Area */
    .content {
        margin-left: 0 !important;
        padding: 80px 20px 20px 20px !important;
        /* Top padding for fixed header */
        width: 100%;
        box-sizing: border-box;
    }

    .container {
        width: 100%;
        padding: 0;
    }

    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Adjust Grids */
    .classes-grid,
    .attendance-grid {
        grid-template-columns: 1fr;
    }

    /* Typography on Mobile */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* --- APP-LIKE UI STYLES --- */

/* Mobile Top Header (Simplified) */
.mobile-top-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid #222;
}

.user-profile-snap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid #444;
}

.user-welcome {
    display: flex;
    flex-direction: column;
}

.user-welcome span {
    font-size: 0.8rem;
    color: #888;
}

.user-welcome strong {
    font-size: 1rem;
    color: white;
}

/* MOBILE NAV BAR */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    justify-content: space-around;
    z-index: 9999;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: all 0.2s;
}

.mobile-bottom-nav .nav-item.active {
    color: white;
    opacity: 1;
}

.mobile-bottom-nav .nav-icon {
    font-size: 1.5rem;
}

/* DASHBOARD GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 10px 0 30px 0;
}

.grid-card {
    background: #141414;
    background: linear-gradient(145deg, #1a1a1a, #141414);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 130px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.grid-card:active {
    transform: scale(0.96);
    background: #0f0f0f;
}

/* Subtle inner glow on top */
.grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
    opacity: 0.5;
}

.grid-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.grid-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.3;
    z-index: 1;
}

/* HERO CARD (Status) */
.hero-card {
    background: linear-gradient(135deg, #1c1c1c 0%, #0a0a0a 100%) !important;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(90px);
    opacity: 0.15;
    /* Red glow */
    pointer-events: none;
}

.hero-title {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.hero-content {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Login Page Redesign */
body.login-page {
    background: #000 !important;
}

.login-overlay {
    display: none;
}

.login-card {
    background: rgba(20, 20, 20, 0.85);
    /* Proper glass/dark background */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.login-title {
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1;
}

.login-subtitle {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {

    /* Hide Sidebars */
    .sidebar {
        display: none !important;
    }

    /* Hide Old Mobile Header if exists */
    .mobile-header {
        display: none !important;
    }

    /* Show New Bottom Nav and Top Bar */
    .mobile-bottom-nav {
        display: flex;
    }

    .mobile-top-bar {
        display: flex;
    }

    /* Adjust Content Area */
    .content {
        margin-left: 0 !important;
        padding: 80px 20px 100px 20px !important;
        /* Top for header, bottom for nav */
        width: 100%;
    }

    /* Login Page Padding */
    .login-page .container {
        padding: 0 20px;
    }
}

/* --- UTILITIES & MISSING CLASSES --- */

/* Visibility Toggles */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* Outline Button */
.btn-outline {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 215, 0, 0.05);
}

/* Primary Button Helper */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #b71c1c;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}


/* --- BELT VISUALIZATION STYLES (From Grading) --- */
.belt-display {
    display: inline-flex;
    width: 140px;
    /* Slightly larger for dashboard */
    height: 28px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
    vertical-align: middle;
}

.belt-body {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    text-shadow: none;
    /* Ensure clean text */
}

.belt-tip {
    width: 45px;
    background: black;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.stripe {
    width: 5px;
    height: 80%;
    background: white;
    border-radius: 1px;
    display: inline-block;
}

/* Belt Colors */
.belt-white {
    background: #f5f5f5;
    color: #333;
}

.belt-grey {
    background: #9e9e9e;
    color: #fff;
}

.belt-yellow {
    background: #ffeb3b;
    color: #333;
}

.belt-orange {
    background: #ff9800;
    color: #fff;
}

.belt-green {
    background: #4caf50;
    color: #fff;
}

.belt-blue {
    background: #2196f3;
    color: #fff;
}

.belt-purple {
    background: #9c27b0;
    color: #fff;
}

.belt-brown {
    background: #795548;
    color: #fff;
}

.belt-black {
    background: #000;
    color: #fff;
    border: 1px solid #333;
}

.belt-black .belt-tip {
    background: #d32f2f;
}

/* --- GLOBAL BOTTOM ACTION BAR (App-like Navigation) --- */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 5001;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #888;
    text-decoration: none;
    flex: 1;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 5px 0;
    width: auto;
}

.action-item i {
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.action-item span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Colors & Active States */
.action-item:hover,
.action-item.active {
    color: #fff;
}

.action-item.active i {
    color: var(--accent);
    transform: scale(1.1);
}

.action-item.home:hover {
    color: #fff;
}

.action-item.plans:hover,
.action-item.training:hover {
    color: #2196F3;
}

.action-item.schedules:hover,
.action-item.sync:hover {
    color: #25D366;
}

.action-item.graduation:hover {
    color: #9c27b0;
}

.action-item.profile:hover {
    color: var(--accent);
}

.action-item:active i {
    transform: scale(0.9);
}

/* Specific Page Padding Adjustments */
@media (max-width: 768px) {

    .container,
    .content,
    .dashboard-container {
        padding-bottom: 110px !important;
        /* Space for bottom nav */
    }
}

@media (min-width: 769px) {

    /* Only shift if sidebar is present in the document */
    .sidebar~.bottom-action-bar,
    .sidebar~.content .bottom-action-bar,
    .sidebar~.container .bottom-action-bar {
        left: 80px;
        width: calc(100% - 80px);
        transition: left 0.4s, width 0.4s;
    }

    .sidebar:hover~.bottom-action-bar,
    .sidebar:hover~.content .bottom-action-bar,
    .sidebar:hover~.container .bottom-action-bar {
        left: 240px;
        width: calc(100% - 240px);
    }
}