/* RSFW Clan Website - Clean Modern Dark Theme */

:root {
    /* Purple palette */
    --primary-purple:    #8b5cf6;
    --secondary-purple:  #a78bfa;
    --dark-purple:       #6d28d9;
    --light-purple:      #c4b5fd;
    --accent-purple:     #7c3aed;
    --accent:            #8b5cf6;

    /* Backgrounds — dark purple theme */
    --background-dark:   #0a0a12;
    --surface-dark:      #12121e;
    --surface-black:     #07070f;
    --card-dark:         #1a1a2e;
    --card-bg:           #1a1a2e;
    --header-bg:         #0d0d1a;
    --hover-color:       #1e1e30;

    /* Text */
    --text-white:        #ffffff;
    --text-primary:      #f1f0f5;
    --text-secondary:    #c4b5fd;
    --text-light:        #e2e0ea;
    --text-gray:         #9ca3af;
    --text-muted:        #6b7280;
    --text-danger:       #f87171;

    /* Borders */
    --border-color:      rgba(139,92,246,0.2);
    --border-dark:       rgba(139,92,246,0.15);

    /* Status colours */
    --success:           #10b981;
    --error:             #ef4444;
    --warning:           #f59e0b;

    /* Vibrant gradients */
    --vibrant-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --vibrant-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --vibrant-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --vibrant-gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

    /* Admin panel vars */
    --admin-bg:              #0d0d1a;
    --admin-card:            #1a1a2e;
    --admin-border:          rgba(139,92,246,0.2);
    --admin-text:            #f1f0f5;
    --admin-text-muted:      #6b7280;
    --admin-primary:         #8b5cf6;
    --admin-primary-dark:    #6d28d9;
    --admin-success:         #10b981;
    --admin-warning:         #f59e0b;
    --admin-danger:          #ef4444;
    --admin-info:            #3b82f6;
    --admin-sidebar-width:   260px;
    --admin-sidebar-collapsed: 70px;
    --admin-topbar-height:   64px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background-dark);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Standard Main Container - Same as forum.php */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Header */
header {
    background: var(--header-bg, var(--surface-dark));
    border-bottom: 1px solid var(--border-dark, var(--border-color));
    position: sticky;
    top: 0;
    z-index: 500;
}

/* ── Legacy header/nav rules (scoped to not conflict with #siteHeader) ── */
/* .header-content used by non-standard pages */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-purple);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.logo img { height: 32px; width: auto; }

/* Nav - only applies outside #siteHeader */
nav:not(#desktopNav):not(.mobile-nav-links) {
    display: flex;
    gap: 8px;
}
nav:not(#desktopNav):not(.mobile-nav-links) a {
    color: var(--text-gray);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}
nav:not(#desktopNav):not(.mobile-nav-links) a:hover {
    color: var(--text-white);
    background: var(--card-dark);
}
nav:not(#desktopNav):not(.mobile-nav-links) a.active {
    color: var(--text-white);
    background: var(--primary-purple);
}

/* User Menu */
.user-menu { display: flex; align-items: center; gap: 12px; }
.user-menu .avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid var(--primary-purple);
}
.mobile-account-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid var(--primary-purple);
}

/* Mobile Menu Button (legacy) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}



/* Admin Panel Styles */
.admin-dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.admin-sidebar {
    background: var(--card-dark);
    padding: 0;
    border-radius: 12px;
    height: fit-content;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-sidebar h3 {
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-gray);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.admin-nav-item:hover {
    background: var(--surface-dark);
    color: var(--text-white);
    padding-left: 25px;
}

.admin-nav-item.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: white;
    border-left: 4px solid var(--light-purple);
    padding-left: 20px;
}

.admin-nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--surface-dark);
}

.table th {
    padding: 15px;
    text-align: left;
    color: var(--text-gray);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.table tbody tr:hover {
    background: var(--surface-dark);
}

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

.stat-card {
    background: var(--card-dark);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card .value {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 5px;
}

.stat-card .label {
    color: var(--text-gray);
    font-size: 14px;
}

.stat-card .icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.2;
}

/* Notification Badge */
.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin Responsive */
@media (max-width: 1024px) {
    .admin-dashboard {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        order: -1;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(180deg, var(--surface-dark) 0%, var(--background-dark) 100%);
}

.hero-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    border-radius: 50%;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-tagline {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
}

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

.btn-secondary:hover {
    background: var(--card-dark);
    border-color: var(--text-gray);
}

/* Forum Section */
.forum-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.forum-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 32px;
}

/* Forum Category List */
.forum-category-item {
    background: var(--card-dark);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
}

.forum-category-item:hover {
    background: var(--hover-color);
    border-color: var(--primary-purple);
    transform: translateX(4px);
}

.forum-category-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-category-info {
    flex: 1;
}

.forum-category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-category-title i {
    color: var(--primary-purple);
    font-size: 18px;
}

.forum-category-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

.forum-category-stats {
    display: flex;
    gap: 24px;
    align-items: center;
}

.forum-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    font-size: 14px;
}

.forum-stat i {
    font-size: 16px;
}

/* Cards */
.card {
    background: var(--card-dark);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    background: var(--surface-dark);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 16px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--card-dark);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Thread Items */
.thread-item {
    background: var(--card-dark);
    padding: 20px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.thread-item:hover {
    background: var(--hover-color);
    border-color: var(--primary-purple);
}

.thread-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-white);
    text-decoration: none;
    flex: 1;
}

.thread-title:hover {
    color: var(--primary-purple);
}

.thread-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.thread-stat {
    color: var(--text-gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Profile System */
.profile-header {
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(180deg, var(--surface-dark) 0%, var(--background-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.profile-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-purple);
    margin-bottom: 24px;
    display: inline-block;
}

.profile-username {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.profile-rank {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Player Cards */
.player-card {
    background: var(--card-dark);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.player-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

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

.player-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.xbox-icon {
    background: #107C10;
    color: white;
}

.playstation-icon {
    background: #003791;
    color: white;
}

.steam-icon {
    background: #171a21;
    color: white;
    border: 2px solid #66c0f4;
}

.nintendo-icon {
    background: #E60012;
    color: white;
}

.player-card-gamertag {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
}

.player-card-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.member-card {
    background: var(--card-dark);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.member-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
}

.member-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-purple);
    margin-bottom: 20px;
}

.member-card .username {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.member-card .rank {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* Status Indicators */
.online-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.online-status.online {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.online-status.offline {
    background: #6b7280;
}

.online-status.streaming {
    background: var(--primary-purple);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* Streaming Status */
.streaming-status {
    background: linear-gradient(135deg, #6441a5 0%, var(--primary-purple) 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 2px solid var(--light-purple);
}

.streaming-status.live {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(139, 92, 246, 0);
    }
}

.live-badge {
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--card-dark);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-4px);
}

.stat-card .stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 8px;
}

.stat-card .stat-label {
    color: var(--text-gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Discord Widget */
.discord-widget {
    background: #5865F2;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.discord-widget iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-dark);
    border-radius: 16px;
    overflow: hidden;
}

.table thead {
    background: var(--surface-dark);
}

.table th {
    padding: 20px;
    text-align: left;
    color: var(--text-white);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
}

.table tbody tr:hover {
    background: var(--hover-color);
}

/* Messages */
.alert {
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Footer */
footer {
    background: var(--surface-dark);
    padding: 60px 24px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
}

.footer-section h4 {
    color: var(--text-white);
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--primary-purple);
}

.footer-bottom {
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
    color: var(--text-gray);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .hero-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .hero-tagline {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .forum-category-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .forum-category-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .header-content {
        padding: 0 16px;
    }
    
    nav {
        display: none;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}
/* Announcement Badges */
.announcement-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.type-info { background: #3498db; color: white; }
.type-warning { background: #f39c12; color: white; }
.type-success { background: #27ae60; color: white; }
.type-important { background: #e74c3c; color: white; }

/* Event Type Badges */
.event-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.type-practice { background: #3498db; color: white; }
.type-tournament { background: #e74c3c; color: white; }
.type-meeting { background: #9b59b6; color: white; }
.type-social { background: #2ecc71; color: white; }
.type-other { background: #95a5a6; color: white; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-dark);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: white;
    font-size: 20px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: white;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

/* Message Item */
.message-item:hover {
    background: rgba(139, 92, 246, 0.05);
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--background-dark);
    color: white;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-left: 4px solid #2ecc71;
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

/* ============================================
   GLOBAL SEARCH BAR
   ============================================ */
.global-search {
    position: relative;
    margin-right: 15px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 5px 10px;
    transition: all 0.3s;
}

.search-input-group:focus-within {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 6px;
    font-size: 12px;
}

.global-search input {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 13px;
    width: 150px;
    outline: none;
}

.global-search input::placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

.search-submit {
    background: transparent;
    border: none;
    color: var(--primary-purple);
    cursor: pointer;
    padding: 3px;
    transition: transform 0.2s;
}

.search-submit:hover {
    transform: translateX(2px);
}

/* ============================================
   NOTIFICATION CENTER
   ============================================ */
/* notification-center/bell - legacy selectors kept for JS compatibility */
.notification-center { position: relative; display: contents; }
.notification-bell   { display: none; } /* replaced by .notif-btn in standard_header.php */

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

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

.notification-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 400px;
    max-height: 500px;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notification-dropdown.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-dark);
    background: var(--background-dark);
}

.notification-header h3 {
    color: var(--text-white);
    font-size: 16px;
    margin: 0;
}

.mark-read-btn {
    background: transparent;
    border: none;
    color: var(--primary-purple);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.mark-read-btn:hover {
    color: var(--text-white);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-dark);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 12px;
    align-items: start;
}

.notification-item:hover {
    background: rgba(139, 92, 246, 0.05);
}

.notification-item.unread {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--primary-purple);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.notification-icon.reply { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.notification-icon.mention { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.notification-icon.like { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.notification-icon.application { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.notification-icon.achievement { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.notification-icon.event { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.notification-content {
    flex: 1;
}

.notification-message {
    color: var(--text-white);
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notification-time {
    color: var(--text-muted);
    font-size: 11px;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-dark);
    text-align: center;
    background: var(--background-dark);
}

.notification-footer a {
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.notification-footer a:hover {
    color: var(--text-white);
}

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.no-notifications i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ============================================
   MOBILE SEARCH & NOTIFICATIONS
   ============================================ */
@media (max-width: 768px) {
    .global-search input {
        width: 120px;
    }
    
    .notification-dropdown {
        width: 320px;
        right: -20px;
    }
    
    .header-content {
        gap: 10px;
    }
}

/* ============================================
   MAIN LAYOUT WITH SIDEBAR
   ============================================ */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

.main-content {
    min-width: 0; /* Prevent overflow */
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-stats {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-stats h3 {
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-stats h3 i {
    color: var(--primary-purple);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-dark);
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
}

.stat-value {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
}

/* Responsive sidebar layout */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1; /* Move sidebar to top on tablets */
    }
}

@media (max-width: 768px) {
    .main-layout {
        padding: 20px;
    }
    
    .sidebar {
        display: none; /* Hide sidebar completely on mobile */
    }
}

/* ============ MENTION AUTOCOMPLETE ============ */
.mention-menu {
    position: absolute;
    background: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    min-width: 250px;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.mention-item:last-child {
    border-bottom: none;
}

.mention-item:hover,
.mention-item.active {
    background: rgba(139, 92, 246, 0.1);
}

.mention-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.mention-username {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.mention-username strong {
    color: var(--primary-purple);
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-dark);
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
    border-color: var(--primary-purple);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Light Theme Variables */
[data-theme="light"] {
    --background-dark: #f8fafc;
    --card-dark: #ffffff;
    --text-light: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
}

[data-theme="light"] body {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Dark Theme Variables (Default) */
[data-theme="dark"] {
    --background-dark: #0f0f0f;
    --card-dark: #252525;
    --text-light: #e5e5e5;
    --text-muted: #a3a3a3;
    --border-color: #404040;
    --border-dark: #525252;
}

/* Smooth theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* ============ KEYBOARD SHORTCUTS MODAL ============ */
.keyboard-shortcuts-modal {
    z-index: 10001;
}

.keyboard-shortcuts-modal .modal-content {
    max-width: 700px;
}

.keyboard-shortcuts-modal .modal-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.shortcuts-category h3 {
    color: var(--primary-purple);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.shortcuts-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shortcuts-category li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.shortcuts-category li:last-child {
    border-bottom: none;
}

.shortcuts-category kbd {
    display: inline-block;
    padding: 4px 10px;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shortcuts-category span {
    color: var(--text-muted);
    font-size: 14px;
}

/* Keyboard shortcut hint in footer */
.keyboard-shortcut-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s;
}

.keyboard-shortcut-hint:hover {
    color: var(--primary-purple);
}

.keyboard-shortcut-hint kbd {
    padding: 2px 6px;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

/* ============ PASSWORD STRENGTH METER ============ */
.strength-meter {
    margin-top: 10px;
}

.strength-bar-container {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.strength-bar.weak {
    background: #ef4444;
}

.strength-bar.fair {
    background: #f59e0b;
}

.strength-bar.good {
    background: #eab308;
}

.strength-bar.strong {
    background: #22c55e;
}

.strength-text {
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.password-requirements {
    margin-top: 15px;
    padding: 15px;
    background: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.password-requirements h4 {
    margin: 0 0 10px 0;
    color: var(--text-light);
    font-size: 14px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.password-requirements li.met {
    color: #22c55e;
}

.password-requirements li i {
    font-size: 12px;
    width: 16px;
}

/* Navigation Dropdown Menu */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.15);
    padding-left: 25px;
    color: var(--primary-purple);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--light-purple);
}
