:root {
    --bg-main: #0a0b10;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a5b8;
    --accent-1: #4facfe;
    --accent-2: #00f2fe;
    --accent-3: #8a2387;
    --accent-4: #e94057;
    --success: #0df0a3;
    --glass-blur: blur(16px);
    --dropdown-bg: rgba(10, 11, 16, 0.98);
    --control-bg: rgba(255, 255, 255, 0.05);
    --bg-gradient-1: rgba(79, 172, 254, 0.15);
    --bg-gradient-2: rgba(138, 35, 135, 0.15);
    /* Analytics & Modal Tokens */
    --modal-bg: rgba(13, 14, 20, 0.98);
    --chart-accent-1: #4facfe;
    --chart-accent-2: #0df0a3;
    --chart-accent-3: #f1c40f;
    --chart-accent-4: #e94057;
}

body.light-mode {
    --bg-main: #f5f6fa;
    --card-bg: #fff;
    --card-border: rgba(0, 0, 0, 0.06);
    --text-primary: #1a1a24;
    --text-secondary: #64748b;
    --accent-1: #3b82f6;
    --accent-2: #06b6d4;
    --accent-3: #8b5cf6;
    --accent-4: #f43f5e;
    --success: #10b981;
    --header-bg: rgba(255, 255, 255, 0.8);
    --dropdown-bg: rgba(255, 255, 255, 0.98);
    --bg-gradient-1: rgba(59, 130, 246, 0.1);
    --bg-gradient-2: rgba(139, 92, 246, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background: var(--bg-main);
    background-image:
        radial-gradient(circle at 15% 50%, var(--bg-gradient-1), transparent 25%),
        radial-gradient(circle at 85% 30%, var(--bg-gradient-2), transparent 25%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 1rem;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    margin: 2rem 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-strip {
        grid-template-columns: repeat(4, 1fr);
        padding: 4rem 2rem;
        justify-items: center;
    }
}

/* Glass Header */
.glass-header {
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purpose-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .glass-header {
        padding: 0.2rem 0;
    }
    .nav-container {
        padding: 0.6rem 1rem;
    }
    .logo {
        font-size: 1.35rem !important;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text-pink {
    background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer {
    padding: 6rem 2rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    line-height: 1;
}

.btn-nav {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.btn-nav:hover {
    color: var(--text-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    padding: 0;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-container nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #0a0b0e !important; /* Solid sleek background for cleanliness */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 5rem 2rem 2rem;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        gap: 0;
    }

    /* Professional Background Glow */
    .nav-container nav::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at center, rgba(79, 172, 254, 0.08), transparent 70%);
        z-index: -1;
        pointer-events: none;
    }

    .nav-container nav::before {
        content: 'N A V I G A T E';
        display: block;
        font-size: 0.6rem;
        font-weight: 800;
        color: var(--accent-1);
        letter-spacing: 8px;
        margin-bottom: 2.5rem;
        opacity: 0.6;
    }

    .nav-container nav a {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        width: 100% !important;
        text-align: center;
        padding: 1.2rem !important;
        color: var(--text-primary) !important;
        letter-spacing: 3px !important;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .nav-container nav a:hover {
        color: var(--accent-1) !important;
        letter-spacing: 4px !important;
        transform: scale(1.05);
    }

    .nav-container nav .btn-primary {
        margin-top: 3rem !important;
        width: 100% !important;
        max-width: 280px !important;
        padding: 1rem !important;
        border-radius: 8px !important;
        font-size: 0.95rem !important;
        letter-spacing: 2px !important;
        background: var(--hero-gradient) !important;
        box-shadow: 0 15px 30px rgba(79, 172, 254, 0.3) !important;
        text-transform: uppercase;
        font-weight: 700;
    }

    .nav-container nav.active {
        right: 0;
    }

    .footer {
        padding: 3.5rem 1.5rem;
    }

    .footer .logo {
        font-size: 1.5rem !important;
    }

    /* Hamburger Animation when Active */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Creative 3-Dots Menu */
.kebab-container {
    position: relative;
    display: flex;
    align-items: center;
}

.kebab-dots {
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.5px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.kebab-dots:hover {
    background: var(--card-border);
    border-color: var(--card-border);
    transform: rotate(90deg);
}

.kebab-dots span {
    width: 4px;
    height: 4px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.kebab-dots:hover span,
.kebab-container.active .kebab-dots span {
    background-color: var(--accent-1);
    box-shadow: 0 0 8px var(--accent-1);
}

.kebab-container.active .kebab-dots {
    background: var(--card-border);
    border-color: var(--card-border);
    transform: rotate(90deg);
}

.kebab-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    background: var(--dropdown-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0.6rem;
    display: flex;
    /* Always flex but hidden */
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform-origin: top right;

    /* Smooth Transitions */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.kebab-container:hover .kebab-dropdown,
.kebab-container.active .kebab-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: all;
    transition-delay: 0.1s;
    /* Slight delay to prevent accidental triggers */
}

.kebab-dropdown .btn-nav {
    text-align: left;
    width: 100%;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.kebab-dropdown .btn-nav:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Layout */
#main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    #main-content {
        padding: 1.5rem 1rem;
    }
}

/* Cards & Containers - Glassmorphism */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    animation: premiumReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    border-color: rgba(79, 172, 254, 0.4);
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.glass-panel:hover::after {
    transform: rotate(45deg) translateX(100%);
}

@keyframes premiumReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 1.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Registration Form */
.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin-top: 1rem;
    animation: glowPulse 3s infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(79, 172, 254, 0.5);
    filter: brightness(1.1);
}

/* Typography styles */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

p.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.05);
}

/* Tool Item Hover */
.session-card div[style*="background:rgba(255,255,255,0.02)"] {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.session-card div[style*="background:rgba(255,255,255,0.02)"]:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent-2) !important;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* QR Code Section */
.qr-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.qr-box {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Session / Today Class Card */
.session-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    width: 100%;
}

@media (max-width: 768px) {
    .session-card {
        padding: 1.2rem;
    }
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.session-content ul {
    list-style: none;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.session-content li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
}

.session-content li:nth-child(1) {
    animation-delay: 0.2s;
}

.session-content li:nth-child(2) {
    animation-delay: 0.3s;
}

.session-content li:nth-child(3) {
    animation-delay: 0.4s;
}

.session-content li:nth-child(4) {
    animation-delay: 0.5s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.session-content li::before {
    content: "•";
    color: var(--accent-1);
    font-size: 1.5rem;
}

/* Badges & Tags */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(13, 240, 163, 0.1);
    color: var(--success);
    animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 240, 163, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(13, 240, 163, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 240, 163, 0);
    }
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--card-border);
    opacity: 0;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.tag:nth-child(1) {
    animation-delay: 0.3s;
}

.tag:nth-child(2) {
    animation-delay: 0.4s;
}

.tag:nth-child(3) {
    animation-delay: 0.5s;
}

.tag:nth-child(4) {
    animation-delay: 0.6s;
}

.tag:nth-child(5) {
    animation-delay: 0.7s;
}

.tag:nth-child(6) {
    animation-delay: 0.8s;
}

.tag:nth-child(7) {
    animation-delay: 0.9s;
}

.tag:nth-child(8) {
    animation-delay: 1.0s;
}

.tag-success {
    border-color: var(--success);
    color: var(--success);
    background: rgba(13, 240, 163, 0.05);
}

.tag-warning {
    border-color: #f1c40f;
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.05);
}

.tag-danger {
    border-color: var(--accent-4);
    color: var(--accent-4);
    background: rgba(233, 64, 87, 0.05);
}

/* Animated Notification Banner */
.notification-banner {
    background: linear-gradient(90deg, rgba(138, 35, 135, 0.2), rgba(233, 64, 87, 0.2), rgba(138, 35, 135, 0.2));
    background-size: 200% 200%;
    border: 1px solid var(--accent-4);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: gradientShift 6s ease infinite, subtlePulse 3s infinite;
}

.notification-badge {
    animation: badgePulse 2s infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes subtlePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 64, 87, 0.3);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(233, 64, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(233, 64, 87, 0);
    }
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4); }
    50% { box-shadow: 0 0 25px 0 rgba(79, 172, 254, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4); }
}

/* Stagger animations for cards in dashboard */
.dashboard-grid>div>.session-card:nth-child(1),
.dashboard-grid>div>.qr-card:nth-child(1) {
    animation-delay: 0.1s;
}

.dashboard-grid>div>.session-card:nth-child(2),
.dashboard-grid>div>.qr-card:nth-child(2) {
    animation-delay: 0.2s;
}

.dashboard-grid>div>.session-card:nth-child(3),
.dashboard-grid>div>.qr-card:nth-child(3) {
    animation-delay: 0.3s;
}

.dashboard-grid>div>.session-card:nth-child(4),
.dashboard-grid>div>.qr-card:nth-child(4) {
    animation-delay: 0.4s;
}

.dashboard-grid>div>.session-card:nth-child(5) {
    animation-delay: 0.5s;
}

@media (max-width: 768px) {
    #main-content {
        padding: 1rem;
    }

    .grid-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group.full-width {
        grid-column: 1;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-column {
        gap: 1.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Prevent long text/status from breaking layout */
    .session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .tag,
    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Attendance Animations */
@keyframes statusPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-icon-pop {
    animation: statusPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--modal-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-4);
    color: white;
    transform: rotate(90deg);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Analytics System */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.analytics-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

.search-bar-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-bar-container input {
    padding-left: 2.5rem;
    border-radius: 50px;
}

.search-bar-container svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* Tab System */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--accent-1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-1);
    box-shadow: 0 0 10px var(--accent-1);
}

@keyframes ribbonSlide {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reveal-attendance {
    animation: ribbonSlide 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Premium Attendance Effects */
.shimmer-border {
    position: relative;
    overflow: hidden;
}

.shimmer-border::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: linear-gradient(45deg, transparent, rgba(13, 240, 163, 0.05), transparent);
    animation: shimmerLoop 4s linear infinite;
    pointer-events: none;
}

/* Theme Toggle Button Styles */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    padding: 0;
    z-index: 1001; /* Ensure visibility over mobile menu */
}

.theme-toggle:hover {
    background: var(--card-border);
    transform: translateY(-2px);
    border-color: var(--accent-1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode .theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: none;
}

.light-mode .theme-toggle .moon-icon {
    display: block;
}

/* Specific light mode overrides for clarity */
.light-mode .stat-card {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.light-mode .session-card {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.light-mode .glass-panel {
    background: #fff;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

@keyframes shimmerLoop {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float-slow {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-item {
    animation: float-slow 4s ease-in-out infinite;
}

/* Special Status Badge Animations */
.status-badge-premium {
    position: relative;
    overflow: hidden;
    animation: softBreathe 3s ease-in-out infinite;
    z-index: 1;
}

.status-badge-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: sweepGlow 4s infinite;
}

@keyframes sweepGlow {
    0% {
        left: -150%;
    }

    30% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@keyframes softBreathe {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Collapsible Section Styles */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding-bottom: 0.5rem;
}

.collapsible-header:hover h3 {
    color: var(--accent-1);
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.collapsible:not(.collapsed) .toggle-btn {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 1;
}

.collapsed .collapsible-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0 !important;
}

.collapsed.session-card {
    padding-bottom: 1.2rem;
    /* Reduced padding when collapsed */
}

.collapsible-header h3 {
    transition: color 0.3s ease;
}

.collapsible-header .subtitle {
    transition: opacity 0.3s ease;
}

.collapsed .collapsible-header {
    padding-bottom: 0;
}

.collapsed .collapsible-header .subtitle {
    opacity: 0;
    height: 0;
    margin: 0 !important;
    overflow: hidden;
}

/* Badge Showcase Styles */
.badge-grid {
    margin-top: 0.5rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 0.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: help;
}

.badge-item.unlocked {
    background: rgba(79, 172, 254, 0.05);
    border-color: var(--accent-1);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.1);
}

.badge-item.unlocked:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(79, 172, 254, 0.1);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.2);
}

.badge-item.locked:hover {
    background: rgba(255, 255, 255, 0.05);
}

.badge-item.unlocked .badge-icon {
    animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 8px;
    border: 1px solid var(--card-border);
}

/* Streak Badge Styles */
.streak-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
}

.streak-badge.active {
    border-color: #ff4d00;
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.1);
}

.streak-badge.inactive {
    filter: grayscale(1);
    opacity: 0.6;
}

.streak-fire {
    font-size: 1.4rem;
    animation: flameBurn 1.5s ease-in-out infinite alternate;
}

.streak-count {
    font-size: 1.2rem;
    font-weight: 700;
}

.streak-tooltip {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid var(--card-border);
    z-index: 10;
}

.streak-badge:hover .streak-tooltip {
    opacity: 1;
}

@keyframes flameBurn {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 2px #ff4d00);
    }

    to {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px #ff4d00);
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
    }
}

.streak-warning {
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* Copyright Footer */
.footer-copyright {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: auto;
    width: 100%;
    border-top: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
}

.footer-copyright strong {
    color: var(--accent-1);
    font-weight: 600;
}

/* --- Office Control Center UI --- */
.sidebar {
    width: 260px;
    background: rgba(13, 14, 20, 0.95);
    backdrop-filter: blur(30px);
    border-right: 1px solid var(--card-border);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(79, 172, 254, 0.1), transparent);
    color: var(--accent-1);
    border-left: 3px solid var(--accent-1);
}

.main-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-link span,
    .sidebar-header .logo {
        display: none;
    }

    .main-wrapper {
        margin-left: 80px;
    }
}

/* Office Management Surface */
.management-surface {
    padding: 2.5rem !important;
    max-width: 1400px !important;
    margin: 0 !important;
}

.office-widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.office-widget:hover {
    transform: translateY(-5px);
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.05);
}

.widget-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.widget-val {
    font-size: 2.4rem;
    font-weight: 800;
}

/* Premium Directory Table */
.directory-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 20px;
}

.dir-row {
    transition: background 0.2s ease;
}

.dir-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Admission QR Design */
.qr-box {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    width: 150px;
    height: 150px;
}

/* Vision & Mission Styles */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vm-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 28px;
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}

.vm-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.vm-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.vm-card p {
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.vm-card .main-statement {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    border-left: 4px solid var(--accent-1);
    padding-left: 1.2rem;
    margin-bottom: 0.2rem;
}

.vm-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
    .vm-card {
        padding: 2rem;
    }
    .vm-card h3 { font-size: 1.8rem; }
}