:root {
    /* Premium Color Palette */
    --primary-color: #6366f1;
    /* Indigo-500 */
    --primary-dark: #4f46e5;
    /* Indigo-600 */
    --primary-light: #818cf8;
    /* Indigo-400 */

    --secondary-color: #ec4899;
    /* Pink-500 */
    --accent-color: #06b6d4;
    /* Cyan-500 */

    --text-color: #1e293b;
    /* Slate-800 */
    --text-light: #64748b;
    /* Slate-500 */

    --bg-color: #f1f5f9;
    /* Slate-100 */
    --sidebar-bg: #0f172a;
    /* Slate-900 */
    --card-bg: #ffffff;

    --border-color: #e2e8f0;
    /* Slate-200 */

    /* Premium Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --font-main: 'Outfit', sans-serif;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

/* ============================
   ADMIN SPECIFIC STYLES
   ============================= */

/* Admin Layout */
.admin-body {
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    /* Subtle gradient for depth */
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-header img {
    height: 38px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    text-transform: uppercase;
    opacity: 0.9;
}

.sidebar-nav {
    padding: 1.5rem 1rem;
    flex: 1;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    /* Slate-400 */
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: var(--font-main);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: white;
    background: rgba(99, 102, 241, 0.15);
    /* Primary color low opacity */
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 4px;
}

.nav-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.nav-item:hover i,
.nav-item.active i {
    transform: scale(1.1);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.nav-item.secondary {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    color: #94a3b8;
}

.nav-item.logout {
    color: #f87171;
    /* brighter red */
}

.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem;
    max-width: 1600px;
    /* constrain on super wide screens */
    margin-right: auto;
    transition: margin-left 0.3s ease;
}

/* Section Headers */
.section-header-admin {
    margin-bottom: 2.5rem;
}

.section-header-admin h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-header-admin p {
    color: var(--text-light);
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.primary .icon-box {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.stat-card.success .icon-box {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-card.warning .icon-box {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.stat-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Styles */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.full-width {
    grid-column: 1 / -1;
}

.gl-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    transition: all 0.3s;
}

.input-group:focus-within {
    transform: translateY(-2px);
}

.input-group i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.gl-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.2s ease;
    background: #f8fafc;
    /* Slate-50 */
    color: var(--text-color);
}

.textarea-group .gl-input {
    padding-left: 1.2rem;
}

.gl-input:hover {
    background: white;
    border-color: #cbd5e1;
    /* Slate-300 */
}

.gl-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
}

.gl-input:focus+i,
.input-group:focus-within i {
    color: var(--primary-color);
}

/* Image Upload */
.image-upload-wrapper {
    border: 2px dashed var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.image-upload-wrapper:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.file-drop-area input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-drop-area i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.image-upload-wrapper:hover i {
    transform: scale(1.1) translateY(-5px);
    color: var(--primary-color);
}

.image-preview {
    margin-top: 1.5rem;
    max-height: 250px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
}

.image-preview.hidden {
    display: none;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 1px var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.data-table th {
    background: #f8fafc;
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.95rem;
    vertical-align: middle;
    transition: background 0.2s;
}

.data-table tr:hover td {
    background: #f1f5f9;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.status-upcoming {
    background: rgba(76, 201, 240, 0.1);
    color: #0096c7;
}

.status-badge.status-ongoing {
    background: rgba(6, 214, 160, 0.1);
    color: #02c39a;
}

.status-badge.status-completed {
    background: rgba(141, 153, 174, 0.1);
    color: #6c757d;
}

/* Buttons in Table */
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 0.3rem;
}

.btn-edit {
    background: rgba(255, 209, 102, 0.2);
    color: #f39c12;
}

.btn-edit:hover {
    background: #f39c12;
    color: white;
}

.btn-delete {
    background: rgba(239, 35, 60, 0.1);
    color: var(--danger);
}

.btn-delete:hover {
    background: var(--danger);
    color: white;
}


/* Loading Screen Overlay (Premium Redesign) */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    /* Clean white background for crispness */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

/* Logo Animation */
.logo-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.loader-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(99, 102, 241, 0.2));
}

/* Premium Spinner */
.spinner-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    animation: premium-spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    /* Bouncy spin */
    position: absolute;
    top: 0;
    left: 0;
}

.spinner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-color);
    animation: premium-spin-reverse 1.5s linear infinite;
}

/* Loading Text */
.loading-text {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: pulse-text 2s ease-in-out infinite;
}

/* Animations */
@keyframes premium-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes premium-spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}


/* Animations */
.panel-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.panel-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Header */
.admin-mobile-header {
    display: none;
    background: rgba(15, 23, 42, 0.95);
    /* Sidebar BG with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 0.8rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 101;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-mobile-header .logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.admin-mobile-header img {
    height: 32px;
}

.admin-mobile-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Responsive Admin */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
        box-shadow: none;
    }

    .admin-sidebar.active {
        transform: translateX(0);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    }

    /* Reduced padding for mobile */
    .admin-main {
        margin-left: 0;
        padding-top: 80px;
        /* Space for mobile header */
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .admin-mobile-header {
        display: flex;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 90;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

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

    /* Mobile Table -> Card View Transformation */
    .table-responsive {
        border-radius: var(--radius-lg);
        overflow: visible;
    }

    .data-table thead {
        display: none;
        /* Hide headers on mobile */
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        background: white;
        margin-bottom: 1.2rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        padding: 1.25rem;
        position: relative;
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.6rem 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.95rem;
    }

    .data-table td:last-child {
        border-bottom: none;
        padding-top: 1.2rem;
        justify-content: center;
        /* Center actions */
        gap: 0.8rem;
        flex-wrap: wrap;
        /* Allow wrapping */
        margin-top: 0.5rem;
        border-top: 1px solid #f1f5f9;
    }

    .data-table td:last-child .btn {
        flex: 1;
        /* Full width buttons */
        justify-content: center;
        min-width: 80px;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-light);
        text-align: left;
        margin-right: 1rem;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Adjust Status Badge in Card View */
    .data-table td[data-label="Status"] {
        justify-content: space-between;
    }
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
/* Header */
/* Header */
/* Header */
.app-header {
    background: #ffffff;
    padding: 0.8rem 5%;
    position: fixed;
    /* Changed from sticky to fixed for reliability */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Adjust main content to prevent hiding behind fixed header */
body {
    padding-top: 80px;
    /* Approximate header height */
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
}

.portal-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(142, 68, 173, 0.2);
    display: flex;
    align-items: center;
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .app-header {
        padding: 0.8rem 1rem;
    }

    .header-container {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .brand-group {
        width: 100%;
        justify-content: flex-start;
    }

    .brand-logo {
        height: 40px;
    }

    .brand-text h1 {
        font-size: 1.4rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .portal-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        align-self: flex-start;
        /* Stack below brand on very small screens if needed, or keep inline */
        margin-left: auto;
        /* Push to right if in flex row, or adjust if column */
        display: none;
        /* Hide badge on mobile to save space, or make it very small */
    }
}



/* Nav Desktop */
.app-header .nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Hover effect for basic links */
.nav-links a:not(.btn) {
    position: relative;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Toggle - Hidden on Desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    /* Above overlay and nav */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .app-header .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .app-header .nav-links.active {
        right: 0;
    }

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

    .nav-links a,
    .nav-links button {
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .nav-links .btn {
        margin-top: 0.5rem;
        text-align: center;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-cta {
    background: var(--secondary-color);
    color: #000;
    font-weight: 700;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-cta:hover {
    transform: scale(1.05);
}

/* Premium Footer Design */
.app-footer {
    background: #0f172a;
    position: relative;
    padding: 3rem 0 1.5rem;
    overflow: hidden;
    margin-top: 4rem;
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-wave .shape-fill {
    fill: #0f172a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand h2 {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    max-width: 350px;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.footer-links-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-col ul li a i {
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-col ul li a:hover i {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.footer-bottom a {
    color: white;
    font-weight: 500;
    position: relative;
}

.footer-bottom i {
    color: var(--danger);
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links-area {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    /* Modal Tweaks Mobile */
    .modal-content-wrapper {
        min-height: 100vh;
        border-radius: 0;
    }

    .details-hero {
        height: 250px;
    }

    .close-modal-btn {
        top: 20px;
        right: 20px;
        background: white;
        color: #000;
        opacity: 0.8;
    }
}

/* Fix Flex Layouts to not break */
.hero-content,
.event-card,
.modal-content,
.status-badge {
    /* Ensure flexbox behavior is consistent */
    box-sizing: border-box;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
}