/* ==========================================================================
   Los Esperados Panel - CSS Theme
   Inspired by Mexican colors: Green, White, Red on Dark background
   ========================================================================== */

/* CSS Variables */
:root {
    /* Mexican Colors */
    --green-primary: #006847;
    --green-light: #1a8c3a;
    --green-dark: #004d33;
    --red-primary: #ce1126;
    --red-light: #e63946;
    --red-dark: #9b0d1c;
    --white-cream: #f5f5dc;
    --white-pure: #ffffff;
    --gold: #d4af37;
    --gold-light: #f0d77e;

    /* Dark Theme */
    --bg-darkest: #0a0a0a;
    --bg-dark: #111111;
    --bg-medium: #1a1a1a;
    --bg-light: #252525;
    --bg-lighter: #2d2d2d;

    /* Text Colors */
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Status Colors */
    --success: #1a8c3a;
    --error: #ce1126;
    --warning: #d4af37;
    --info: #5865f2;

    /* Discord */
    --discord: #5865f2;

    /* Sizing */
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--green-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--white-cream);
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: var(--bg-lighter);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--gold);
}

/* ==========================================================================
   Particles Background
   ========================================================================== */

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at top left, rgba(0, 104, 71, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(206, 17, 38, 0.1) 0%, transparent 50%),
        var(--bg-darkest);
}

/* ==========================================================================
   Login Page
   ========================================================================== */

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-medium));
    border-radius: var(--border-radius);
    padding: 50px 40px;
    text-align: center;
    border: 1px solid var(--bg-lighter);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-primary), var(--white-cream), var(--red-primary));
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-title {
    font-size: 2rem;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--white-cream), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin-bottom: 30px;
}

.login-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--discord);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
    color: white;
}

.discord-btn i {
    font-size: 1.4rem;
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-lighter);
}

.login-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Error Page
   ========================================================================== */

.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.error-container {
    width: 100%;
    max-width: 550px;
}

.error-card {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-medium));
    border-radius: var(--border-radius);
    padding: 50px 40px;
    text-align: center;
    border: 1px solid var(--red-dark);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(206, 17, 38, 0.2);
    position: relative;
}

.error-icon {
    font-size: 4rem;
    color: var(--red-primary);
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.error-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.7;
    margin-bottom: 20px;
}

.error-title {
    font-size: 2rem;
    color: var(--red-primary);
    margin-bottom: 20px;
}

.error-user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-lighter);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 25px;
    display: inline-flex;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.error-message {
    background: rgba(206, 17, 38, 0.1);
    border: 1px solid var(--red-dark);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 25px;
}

.error-message p {
    color: var(--red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-details {
    text-align: left;
    background: var(--bg-lighter);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 25px;
}

.error-details h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.error-details ul {
    list-style: none;
}

.error-details li {
    color: var(--text-secondary);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-details li i {
    color: var(--text-muted);
    width: 20px;
}

.error-contact {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-light), var(--green-primary));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 104, 71, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-lighter);
    color: var(--text-primary);
    border: 1px solid var(--bg-light);
}

.btn-secondary:hover {
    background: var(--bg-light);
    color: white;
}

.btn-refresh {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-refresh:hover {
    background: var(--gold);
    color: var(--bg-darkest);
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: color var(--transition-fast);
}

.btn-copy:hover {
    color: var(--gold);
}

/* ==========================================================================
   Dashboard Layout
   ========================================================================== */

.dashboard-page {
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   MODERN SIDEBAR
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition-normal);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-header {
    padding: 28px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent);
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #3b82f6, #22c55e);
    background-size: 300% 100%;
    animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sidebar-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4)); }
    50% { filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.6)); }
}

.sidebar-title {
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.sidebar-subtitle {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    position: relative;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 2px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 3px 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    color: #888;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 500;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.sidebar-nav a:hover i {
    transform: scale(1.1);
}

.sidebar-nav li.active a {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.08), transparent);
    color: #a78bfa;
}

.sidebar-nav li.active a::before {
    height: 60%;
}

.sidebar-nav a i {
    width: 22px;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    text-align: center;
}

/* Colorful icons for each nav item */
.sidebar-nav li:nth-child(1) a i { color: #8b5cf6; } /* Dashboard - Purple */
.sidebar-nav li:nth-child(2) a i { color: #3b82f6; } /* Membres - Blue */
.sidebar-nav li:nth-child(3) a i { color: #22c55e; } /* Liaisons - Green */
.sidebar-nav li:nth-child(4) a i { color: #f59e0b; } /* Banque - Yellow */
.sidebar-nav li:nth-child(5) a i { color: #6366f1; } /* Logs - Indigo */
.sidebar-nav li:nth-child(6) a i { color: #ef4444; } /* Sanctions - Red */

.nav-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin: 18px 20px;
}

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    margin-bottom: 10px;
    font-size: 0.68rem;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-section-title::before {
    content: '';
    width: 16px;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, transparent);
    border-radius: 1px;
}

/* Admin section colorful icons */
.sidebar-nav ul:last-of-type li:nth-child(1) a i { color: #14b8a6; } /* Membres Famille - Teal */
.sidebar-nav ul:last-of-type li:nth-child(2) a i { color: #ef4444; } /* Blacklist - Red */
.sidebar-nav ul:last-of-type li:nth-child(3) a i { color: #6366f1; } /* Reunions - Indigo */
.sidebar-nav ul:last-of-type li:nth-child(4) a i { color: #22c55e; } /* Recruteur - Green */
.sidebar-nav ul:last-of-type li:nth-child(5) a i { color: #f97316; } /* Plaintes - Orange */
.sidebar-nav ul:last-of-type li:nth-child(6) a i { color: #8b5cf6; } /* Parametres - Purple */
.sidebar-nav ul:last-of-type li:nth-child(7) a i { color: #ec4899; } /* Permissions - Pink */

.sidebar-footer {
    padding: 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.user-avatar-small {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    transition: all 0.2s ease;
}

.user-avatar-small:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-details .user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 0.72rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.logout-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: #f87171;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   MAIN CONTENT & MODERN HEADER
   ========================================================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    height: var(--header-height);
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(10, 10, 10, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
}

.main-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.2), transparent);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: #a78bfa;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(139, 92, 246, 0.2);
}

.header-title h1 {
    font-size: 1.4rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-center-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #888;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-center-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.realtime-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 500;
}

.realtime-indicator .pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: realtimePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

@keyframes realtimePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.8);
        box-shadow: 0 0 16px rgba(34, 197, 94, 0.8);
    }
}

.last-update {
    color: #666;
    font-size: 0.8rem;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-wrapper {
    flex: 1;
    padding: 30px;
    background: linear-gradient(180deg, #0a0a0a, #080808);
}

/* ==========================================================================
   Stats Cards
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-medium);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bg-lighter);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-card-green { border-left: 4px solid var(--green-primary); }
.stat-card-red { border-left: 4px solid var(--red-primary); }
.stat-card-gold { border-left: 4px solid var(--gold); }
.stat-card-orange { border-left: 4px solid #f59e0b; }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card-green .stat-icon {
    background: rgba(0, 104, 71, 0.2);
    color: var(--green-light);
}

.stat-card-red .stat-icon {
    background: rgba(206, 17, 38, 0.2);
    color: var(--red-light);
}

.stat-card-gold .stat-icon {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.stat-card-orange .stat-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-decoration {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.05;
}

.stat-card-green .stat-decoration { background: var(--green-primary); }
.stat-card-red .stat-decoration { background: var(--red-primary); }
.stat-card-gold .stat-decoration { background: var(--gold); }
.stat-card-orange .stat-decoration { background: #f59e0b; }

/* ==========================================================================
   Dashboard Grid
   ========================================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dashboard-card {
    background: var(--bg-medium);
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-lighter);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--bg-lighter);
    background: linear-gradient(90deg, rgba(0, 104, 71, 0.1), transparent);
}

.card-header h3 {
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--green-light);
}

.card-body {
    padding: 20px;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
    gap: 15px;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--green-light);
}

/* Grades List */
.grades-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grade-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-lighter);
    border-radius: var(--border-radius-sm);
}

.grade-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.grade-name {
    flex: 1;
    font-weight: 500;
}

.grade-count {
    background: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Bank Overview */
.bank-overview {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bank-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

.bank-stat i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}

.bank-stat-positive {
    background: rgba(0, 104, 71, 0.1);
}

.bank-stat-positive i {
    background: var(--green-primary);
    color: white;
}

.bank-stat-negative {
    background: rgba(206, 17, 38, 0.1);
}

.bank-stat-negative i {
    background: var(--red-primary);
    color: white;
}

.bank-stat-total {
    background: rgba(212, 175, 55, 0.1);
}

.bank-stat-total i {
    background: var(--gold);
    color: var(--bg-darkest);
}

.bank-stat-info {
    display: flex;
    flex-direction: column;
}

.bank-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.bank-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Contributors List */
.contributors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contributor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-lighter);
    border-radius: var(--border-radius-sm);
    transition: background var(--transition-fast);
}

.contributor-item:hover {
    background: var(--bg-light);
}

.contributor-item.gold {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent);
    border-left: 3px solid var(--gold);
}

.contributor-item.silver {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), transparent);
    border-left: 3px solid #c0c0c0;
}

.contributor-item.bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent);
    border-left: 3px solid #cd7f32;
}

.contributor-rank {
    width: 30px;
    font-weight: 700;
    color: var(--text-muted);
}

.contributor-item.gold .contributor-rank { color: var(--gold); }
.contributor-item.silver .contributor-rank { color: #c0c0c0; }
.contributor-item.bronze .contributor-rank { color: #cd7f32; }

.contributor-name {
    flex: 1;
    font-weight: 500;
}

.contributor-balance {
    font-weight: 600;
}

.contributor-balance.positive { color: var(--green-light); }
.contributor-balance.negative { color: var(--red-light); }

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-lighter);
    border-radius: var(--border-radius-sm);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-item.deposit .activity-icon {
    background: rgba(0, 104, 71, 0.2);
    color: var(--green-light);
}

.activity-item.withdrawal .activity-icon {
    background: rgba(206, 17, 38, 0.2);
    color: var(--red-light);
}

.activity-info {
    flex: 1;
}

.activity-name {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.activity-amount {
    font-weight: 600;
}

.activity-item.deposit .activity-amount { color: var(--green-light); }
.activity-item.withdrawal .activity-amount { color: var(--red-light); }

/* ==========================================================================
   Filters Bar
   ========================================================================== */

.filters-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-medium);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
    border: 1px solid var(--bg-lighter);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-lighter);
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    flex: 1;
    min-width: 200px;
}

.search-box i {
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input[type="text"] {
    background: var(--bg-lighter);
    border: 1px solid var(--bg-light);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--green-primary);
}

/* ==========================================================================
   Data Tables
   ========================================================================== */

.table-container {
    background: var(--bg-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--bg-lighter);
}

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

.data-table thead {
    background: linear-gradient(90deg, rgba(0, 104, 71, 0.2), transparent);
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--bg-lighter);
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--bg-lighter);
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--bg-lighter);
}

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

.data-table tbody tr.unlinked-row {
    background: rgba(206, 17, 38, 0.05);
}

.data-table tbody tr.deposit-row {
    background: rgba(0, 104, 71, 0.05);
}

.data-table tbody tr.withdrawal-row {
    background: rgba(206, 17, 38, 0.05);
}

.loading-cell,
.no-data-cell {
    text-align: center;
    padding: 40px !important;
}

.no-data-cell {
    color: var(--text-muted);
}

.no-data-cell i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Member Name */
.member-name .rp-name {
    font-weight: 500;
}

/* SteamID */
.steamid {
    font-size: 0.85rem;
}

.steamid-small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Grade Badge */
.grade-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Discord */
.discord-linked {
    color: var(--discord);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.discord-not-linked {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.discord-id {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--discord);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-linked {
    background: rgba(0, 104, 71, 0.2);
    color: var(--green-light);
}

.status-unlinked {
    background: rgba(206, 17, 38, 0.2);
    color: var(--red-light);
}

/* Transaction Type */
.transaction-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.transaction-type.deposit {
    background: rgba(0, 104, 71, 0.2);
    color: var(--green-light);
}

.transaction-type.withdrawal {
    background: rgba(206, 17, 38, 0.2);
    color: var(--red-light);
}

/* Log Amount */
.log-amount {
    font-weight: 600;
    font-size: 0.95rem;
}

.log-amount.positive { color: var(--green-light); }
.log-amount.negative { color: var(--red-light); }

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-medium);
    border: 1px solid var(--bg-lighter);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.page-btn.active {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-muted);
}

/* ==========================================================================
   Stats Summary
   ========================================================================== */

.stats-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stats-summary .highlight {
    font-weight: 600;
}

.stats-summary .highlight.positive { color: var(--green-light); }
.stats-summary .highlight.negative { color: var(--red-light); }

/* ==========================================================================
   Tabs
   ========================================================================== */

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 5px;
    background: var(--bg-medium);
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-lighter);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    background: var(--bg-lighter);
    color: var(--text-primary);
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.alert strong {
    display: block;
    margin-bottom: 5px;
}

.alert p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.alert-warning {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
}

.alert-warning i {
    color: var(--gold);
}

/* ==========================================================================
   Balance Hero
   ========================================================================== */

.balance-hero {
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-dark));
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.balance-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.balance-info .balance-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.balance-info .balance-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.balance-value.positive { color: var(--green-light); }
.balance-value.negative { color: var(--red-light); }

.balance-stats {
    display: flex;
    gap: 30px;
}

.balance-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-stat i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.balance-stat.positive i {
    background: rgba(0, 104, 71, 0.2);
    color: var(--green-light);
}

.balance-stat.negative i {
    background: rgba(206, 17, 38, 0.2);
    color: var(--red-light);
}

.balance-stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.balance-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Balance Grid
   ========================================================================== */

.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.balance-card {
    background: var(--bg-medium);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--bg-lighter);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.balance-card.positive {
    border-left: 4px solid var(--green-primary);
}

.balance-card.negative {
    border-left: 4px solid var(--red-primary);
}

.balance-card.gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), var(--bg-medium));
}

.balance-card.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), var(--bg-medium));
}

.balance-card.bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), var(--bg-medium));
}

.balance-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rank-badge {
    background: var(--gold);
    color: var(--bg-darkest);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.balance-card.silver .rank-badge { background: #c0c0c0; }
.balance-card.bronze .rank-badge { background: #cd7f32; }

.player-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.balance-card-body {
    margin-bottom: 15px;
}

.player-balance {
    font-size: 1.8rem;
    font-weight: 700;
}

.balance-card.positive .player-balance { color: var(--green-light); }
.balance-card.negative .player-balance { color: var(--red-light); }

.balance-card-footer {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--bg-lighter);
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mini-stat i {
    font-size: 0.75rem;
}

.balance-card-footer .mini-stat:first-child i { color: var(--green-light); }
.balance-card-footer .mini-stat:last-child i { color: var(--red-light); }

/* ==========================================================================
   Player Summary Card
   ========================================================================== */

.player-summary-card {
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-dark));
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--green-dark);
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-lighter);
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
}

.summary-header h3 i {
    color: var(--green-light);
    margin-right: 8px;
}

.btn-deficit-ping {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-deficit-ping:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-deficit-ping i {
    animation: bellShake 2s ease-in-out infinite;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0); }
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.summary-stat {
    text-align: center;
}

.summary-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-value.positive { color: var(--green-light); }
.summary-value.negative { color: var(--red-light); }

/* ==========================================================================
   No Data
   ========================================================================== */

.no-data {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.no-data-full {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
}

.no-data-full i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-medium);
    padding: 15px 25px;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-color: var(--green-primary); }
.toast.error { border-color: var(--red-primary); }
.toast.warning { border-color: var(--gold); }

.toast i {
    font-size: 1.2rem;
}

.toast.success i { color: var(--green-light); }
.toast.error i { color: var(--red-light); }
.toast.warning i { color: var(--gold); }

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-muted { color: var(--text-muted); }
.positive { color: var(--green-light); }
.negative { color: var(--red-light); }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .balance-hero {
        flex-direction: column;
        text-align: center;
    }

    .balance-hero-content {
        flex-direction: column;
    }

    .balance-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Sidebar Mobile */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .header-title h1 {
        font-size: 1.1rem;
    }

    .main-header {
        padding: 0 16px;
    }

    .content-wrapper {
        padding: 20px 16px;
    }

    /* Overlay for sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 99;
    }

    .sidebar.open + .sidebar-overlay,
    .sidebar-overlay.active {
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-bar {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        flex: 1;
    }

    .tabs {
        flex-direction: column;
    }

    .header-actions .realtime-indicator,
    .header-actions .last-update {
        display: none;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 30px 20px;
    }

    .error-card {
        padding: 30px 20px;
    }

    .content-wrapper {
        padding: 15px;
    }

    .balance-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== NOTIFICATION CENTER ========== */
.notification-center-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
    margin-right: 15px;
}

.notification-center-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 10px;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Centre de notifications - Overlay */
.notification-center-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.notification-center-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Centre de notifications - Panel */
.notification-center {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 320px;
    max-height: 400px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.notification-center.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-center-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-center-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-center-header h3 i {
    color: #a78bfa;
}

.notification-center-actions {
    display: flex;
    gap: 8px;
}

.nc-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.nc-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.nc-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.notification-center-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: 320px;
}

.nc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: #666;
    text-align: center;
}

.nc-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.nc-empty p {
    font-size: 0.85rem;
    margin: 0;
}

/* Items du centre */
.nc-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
}

.nc-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nc-item.unread {
    background: rgba(139, 92, 246, 0.08);
}

.nc-item.unread::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 30px;
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
}

.nc-item.success { border-left-color: #22c55e; }
.nc-item.error { border-left-color: #ef4444; }
.nc-item.warning { border-left-color: #f59e0b; }
.nc-item.info { border-left-color: #3b82f6; }

.nc-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.nc-item.success .nc-item-icon { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.nc-item.error .nc-item-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.nc-item.warning .nc-item-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.nc-item.info .nc-item-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.nc-item-content {
    flex: 1;
    min-width: 0;
}

.nc-item-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 2px;
}

.nc-item-message {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.nc-item-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nc-item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.nc-item:hover .nc-item-delete {
    opacity: 1;
}

.nc-item-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Responsive notification center */
@media (max-width: 480px) {
    .notification-center {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        top: 60px;
    }

    .notification-center-btn {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }
}
