@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;800&display=swap');

@font-face {
    font-family: 'FIFASans';
    src: url('../fonts/FIFASans-Regular.753e37a8db21a26c1959.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'FIFASans';
    src: url('../fonts/FIFASans-Medium.b7d29aecf30969ad3340.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'FWC2026';
    src: url('../fonts/FWC2026-NormalBlack.2bd896c8a8b59af7b8aa.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

:root {
    --primary-color: #f5e946;
    /* Gold */
    --primary-hover: #cca737;
    --bg-color: #020F2A;
    --text-color: #f0f0f0;
    --glass-bg: rgba(13, 13, 27, 0.507);
    --glass-border: rgba(212, 175, 55, 0.2);
    --error-color: #ff4c4c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'FIFASans', 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'FWC2026', 'Montserrat', sans-serif;
    text-transform: uppercase;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

/* Background Effects */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, var(--bg-color) 100%);
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="1" fill="rgba(212,175,55,0.1)"/></svg>') repeat;
    opacity: 0.5;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Login specific */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-content {
    max-width: 1000px;
    margin: 100px auto 30px auto;
    padding: 30px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    margin: 20px;
    text-align: center;
}

.login-header h1,
.login-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.login-header p {
    color: #a0a0a0;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #ffffff;
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: none;
}

/* Global Header & Logout Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 15px 40px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.header-content h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-img {
    max-height: 40px;
    width: auto;
}

.logo-img-large {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    margin-bottom: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-logout {
    color: #ff4c4c;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 8px 15px;
    border: 1px solid #ff4c4c;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(255, 76, 76, 0.1);
}

.btn-logout:hover {
    background: #ff4c4c;
    color: white;
    box-shadow: 0 0 10px rgba(255, 76, 76, 0.4);
}

/* Global Mobile Responsive */
/* Global Mobile Responsive Menu (Hamburger & Dropdown) */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 20px;
        margin: 10px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(0, 0, 0, 0.7);
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        text-align: left;
    }

    .logo-img {
        max-height: 32px;
    }

    /* Hide desktop user-info on mobile */
    .user-info {
        display: none !important;
    }

    /* Hamburger Button */
    .hamburger-btn {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        padding: 0;
        z-index: 1001;
    }
    
    .hamburger-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Hamburger Animation to 'X' */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Mobile Glassmorphic Dropdown Menu */
    .mobile-menu-dropdown {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: calc(100% + 10px);
        right: 10px;
        width: calc(100% - 20px);
        max-width: 320px;
        padding: 25px 20px;
        background: rgba(16, 24, 48, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        z-index: 999;
        
        /* Hidden state transitions */
        opacity: 0;
        transform: translateY(-15px);
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    visibility 0.3s;
    }

    .mobile-menu-dropdown.show {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-menu-dropdown .dropdown-avatar {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--primary-color);
        margin-bottom: 12px;
        box-shadow: 0 0 15px rgba(245, 233, 70, 0.3);
    }

    .mobile-menu-dropdown .dropdown-welcome {
        font-family: 'FWC2026', 'Montserrat', sans-serif;
        font-weight: 900;
        font-size: 0.95rem;
        color: #fff;
        margin-bottom: 18px;
        text-align: center;
        letter-spacing: 0.5px;
    }

    .mobile-menu-dropdown .dropdown-link {
        width: 100%;
        text-align: center;
        color: var(--primary-color);
        font-weight: 800;
        font-size: 0.95rem;
        text-decoration: none;
        margin-bottom: 15px;
        padding: 8px;
        border-radius: 6px;
        transition: background 0.2s ease;
    }

    .mobile-menu-dropdown .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-menu-dropdown .btn-logout {
        width: 100%;
        max-width: 220px;
        text-align: center;
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}

/* Skeleton Loader Animations */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes spin-ball {
    0% {
        transform: rotate(0deg);
    }

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

.spinner {
    animation: spin-ball 1s linear infinite;
}