@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --primary-purple: #9333ea;
    --secondary-purple: #a855f7;
    --dark-purple: #6b21a8;
    --accent-purple: #c084fc;
    --light-purple: #e9d5ff;
    
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #111118;
    --bg-card-hover: #1a1a25;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --border-color: #2a2a3e;
    --border-purple: rgba(147, 51, 234, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-purple: 0 4px 24px rgba(147, 51, 234, 0.4);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utility Classes */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-purple), var(--dark-purple));
    border-radius: 6px;
    border: 3px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-purple);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.login-card {
    background: rgba(17, 17, 24, 0.9);
    border: 1px solid var(--border-purple);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-purple);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.logo-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-section i {
    font-size: 3.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px var(--primary-purple));
}

.logo-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.logo-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 12px;
}

.auth-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

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

/* ===== ERROR & UNAUTH PAGES ===== */
.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.error-card {
    background: rgba(17, 17, 24, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.error-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, var(--primary-purple), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

.error-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.unauth-icon {
    font-size: 5rem;
    color: var(--danger);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.4));
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Background Animation */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.orb-purple {
    background: var(--primary-purple);
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-blue {
    background: var(--info);
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.orb-red {
    background: var(--danger);
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

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

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-logo i {
    font-size: 1.8rem;
    color: var(--primary-purple);
}

.sidebar-logo h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    background: rgba(147, 51, 234, 0.1);
    color: var(--text-primary);
    border-left-color: var(--primary-purple);
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--dark-purple);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-purple);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: radial-gradient(circle at top right, #1a1a2e 0%, var(--bg-dark) 40%);
}

/* Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

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

.stat-card {
    background: linear-gradient(145deg, rgba(17, 17, 24, 0.9), rgba(10, 10, 15, 0.95));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    min-width: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(147, 51, 234, 0.03), transparent);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.15);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(107, 33, 168, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-purple);
    border: 1px solid rgba(147, 51, 234, 0.2);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.1);
}

.stat-info {
    flex: 1;
    z-index: 1;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(180deg, #fff, #e9d5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(147, 51, 234, 0.2);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Server Grid */
#serversGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-purple);
    box-shadow: var(--shadow-purple);
}

.server-header {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.server-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

.server-stats {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.server-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.server-stat i {
    color: var(--primary-purple);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.server-stat .stat-value {
    font-size: 1.4rem; /* Smaller than main stats */
    background: none;
    -webkit-text-fill-color: white;
    text-shadow: none;
}

.server-stat .stat-label {
    font-size: 0.75rem;
}

.server-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
}

/* Tables */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-container {
    width: 100%;
    /* Removed overflow-x: auto to prevent horizontal scrollbar */
}

.table, #playersTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Ensures columns respect width */
}

.table th, .table td, #playersTable th, #playersTable td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    word-wrap: break-word; /* Wrap text if it gets too long */
}

.table th, #playersTable th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table tr:last-child td, #playersTable tr:last-child td {
    border-bottom: none;
}

.table tr:hover td, #playersTable tr:hover td {
    background: var(--bg-card-hover);
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.badge-info { background: rgba(59, 130, 246, 0.2); color: var(--info); }
.badge-purple { background: rgba(147, 51, 234, 0.2); color: var(--accent-purple); }
.badge-secondary { background: rgba(160, 160, 184, 0.2); color: var(--text-secondary); }

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.2);
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    background: transparent;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 16px 16px;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

.form-select option, .form-input option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

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

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Reports Page Styles */
.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.report-card:hover {
    border-color: var(--border-purple);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.report-card.priority-high {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}

.report-card.priority-high:hover {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

.report-header {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
}

.report-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.report-type-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    justify-content: center;
}

.type-cheat { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.type-abuse { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.type-bug { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.type-idea { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.type-general { background: rgba(107, 114, 128, 0.15); color: #d1d5db; border: 1px solid rgba(107, 114, 128, 0.3); }

.report-main-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.report-users {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.user-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.user-link:hover {
    color: var(--primary-purple);
}

.user-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.25rem;
}

.report-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary-purple);
    font-size: 0.8rem;
}

.report-expand-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.report-card.expanded .report-expand-icon {
    transform: rotate(180deg);
    background: var(--primary-purple);
    color: white;
}

.report-details {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

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

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mini-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.mini-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.mini-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.report-message-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.report-message-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.report-message-content {
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.report-image-container {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.report-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Player Header Styles */
.player-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.player-header-main {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    flex: 1;
}

.player-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.player-avatar {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid var(--border-purple);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.player-status-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.player-status-indicator.online { background: var(--success) !important; color: white !important; }
.player-status-indicator.offline { background: var(--danger) !important; color: white !important; }
.player-status-indicator.idle { background: var(--warning) !important; color: white !important; }
.player-status-indicator.dnd { background: var(--danger) !important; color: white !important; }

.player-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-badges-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.player-username {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-meta-grid {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.meta-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-box-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-box-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-header-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
}

.action-btn-large {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

/* Tabs */
.player-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

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

.tab-btn.active {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.tab-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.2);
}

/* Tab Content Areas */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.stats-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

/* Network Intelligence Tab Styles */
.network-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.network-stat-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
}

.network-stat-card:hover {
    border-color: var(--primary-purple);
    background: rgba(147, 51, 234, 0.05);
    transform: translateY(-2px);
}

.network-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.network-stat-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    word-break: break-word;
}

/* Lists (Bans, Alts, Names) */
.ban-item, .alt-item, .name-history-item, .note-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.ban-item:last-child, .alt-item:last-child, .name-history-item:last-child, .note-item:last-child {
    border-bottom: none;
}

.ban-item:hover, .alt-item:hover {
    background: var(--bg-card-hover);
}

.ban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.ban-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.ban-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ban-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.9rem;
}

.ban-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.ban-detail-item .label {
    color: var(--text-muted);
}

/* Alts */
.alt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.alt-info {
    display: flex;
    flex-direction: column;
}

.alt-name {
    font-weight: 600;
}

.alt-steamid {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.alt-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    margin: 2rem auto; /* Center horizontally */
    max-width: 600px;  /* Constrain width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    color: var(--primary-purple);
}

.empty-state h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0;
    line-height: 1.6;
}

/* Chat */
.chat-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.chat-username {
    font-weight: 600;
    color: var(--primary-purple);
}

.chat-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.chat-content {
    color: var(--text-secondary);
    word-break: break-word;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.team-member-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-member-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: var(--border-purple);
}

.team-member-card.leader {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.member-avatar {
    margin-bottom: 0.75rem;
}

.member-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.team-member-card.leader .member-avatar img {
    border-color: var(--warning);
}

.member-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-steamid {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.member-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 5px var(--success);
}

/* Team Stats Summary */
.team-stats-summary {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
    margin-bottom: 0.5rem;
}

.team-stat-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.team-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.team-stat-box.online .team-stat-value { color: var(--success); }
.team-stat-box.offline .team-stat-value { color: var(--text-muted); }

/* Combat Log Styles */
.combat-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.combat-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.combat-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.combat-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.combat-log-list {
    display: flex;
    flex-direction: column;
}

.combat-log-item {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.combat-log-item:hover {
    background: var(--bg-card-hover);
}

.combat-log-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    gap: 1rem;
}

.combat-log-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 4px;
}

.combat-log-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.combat-action {
    font-weight: 700;
    text-transform: uppercase;
}

.combat-action.kill { color: var(--success); }
.combat-action.death { color: var(--danger); }

.combat-target {
    font-family: monospace;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.combat-meters {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: auto;
}

.combat-log-details {
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--border-color);
    display: none; /* Hidden by default */
}

.combat-details-grid {
    display: grid;
    grid-template-columns: 1fr 200px; /* Stats left, Body visual right */
    gap: 2rem;
}

.combat-detail-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.combat-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.combat-detail-row:last-child {
    border-bottom: none;
}

.body-hit-visual {
    position: relative;
    width: 200px;
    height: 400px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(20,25,35,0.9), rgba(30,35,50,0.95));
    border-radius: 12px;
    overflow: visible;
    border: 1px solid rgba(100,149,237,0.2);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.4),
        inset 0 0 60px rgba(100,149,237,0.05);
}

.player-model-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(100,149,237,0.3));
}

.player-silhouette {
    transition: all 0.3s ease;
}

.body-hit-visual:hover .player-silhouette {
    filter: brightness(1.1);
}

.body-overlay {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.3);
    pointer-events: all;
    transition: all 0.2s ease;
    z-index: 10;
    cursor: pointer;
    border-radius: 8px;
    backdrop-filter: blur(2px);
    box-shadow: 
        0 0 20px currentColor,
        inset 0 0 20px rgba(255,255,255,0.1);
}

.body-overlay:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 
        0 0 30px currentColor,
        inset 0 0 30px rgba(255,255,255,0.2);
    z-index: 100;
}

/* Anatomically precise overlay positions */
.overlay-head { 
    top: 2%; 
    left: 41%; 
    width: 18%; 
    height: 11%; 
    border-radius: 50%;
}

.overlay-neck { 
    top: 12%; 
    left: 46%; 
    width: 8%; 
    height: 4%;
    border-radius: 4px;
}

.overlay-chest { 
    top: 16%; 
    left: 31%; 
    width: 38%; 
    height: 18%; 
    border-radius: 12%;
}

.overlay-stomach { 
    top: 34%; 
    left: 36%; 
    width: 28%; 
    height: 14%;
    border-radius: 10%;
}

.overlay-left_arm { 
    top: 20%; 
    left: 16%; 
    width: 11%; 
    height: 28%; 
    transform: rotate(-12deg);
    border-radius: 35%;
}

.overlay-right_arm { 
    top: 20%; 
    left: 68%; 
    width: 11%; 
    height: 28%; 
    transform: rotate(12deg);
    border-radius: 35%;
}

.overlay-left_hand { 
    top: 43%; 
    left: 18%; 
    width: 7%; 
    height: 6%;
    border-radius: 50%;
}

.overlay-right_hand { 
    top: 43%; 
    left: 75%; 
    width: 7%; 
    height: 6%;
    border-radius: 50%;
}

.overlay-left_leg { 
    top: 48%; 
    left: 36%; 
    width: 13%; 
    height: 42%;
    border-radius: 18%;
}

.overlay-right_leg { 
    top: 48%; 
    left: 51%; 
    width: 13%; 
    height: 42%;
    border-radius: 18%;
}

.overlay-left_foot { 
    top: 90%; 
    left: 35%; 
    width: 9%; 
    height: 7%;
    border-radius: 40%;
    transform: rotate(-3deg);
}

.overlay-right_foot { 
    top: 90%; 
    left: 56%; 
    width: 9%; 
    height: 7%;
    border-radius: 40%;
    transform: rotate(3deg);
}

/* Advanced tooltip */
.hit-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: linear-gradient(135deg, rgba(30,35,50,0.98), rgba(20,25,35,0.98));
    border: 1px solid rgba(239,68,68,0.6);
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 140px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.hit-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(239,68,68,0.6);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.body-overlay:hover .hit-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip-header {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-align: center;
    border-bottom: 1px solid rgba(239,68,68,0.3);
    padding-bottom: 4px;
}

.tooltip-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    margin: 4px 0;
    padding: 2px 0;
}

.tooltip-stat i {
    margin-right: 6px;
    font-size: 0.75rem;
    opacity: 0.7;
}

.tooltip-stat.damage {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(239,68,68,0.2);
}

/* Pulse animation for high damage zones */
@keyframes damagePulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px currentColor,
            inset 0 0 20px rgba(255,255,255,0.1);
    }
    50% { 
        box-shadow: 
            0 0 40px currentColor,
            inset 0 0 30px rgba(255,255,255,0.2);
    }
}

.body-overlay[data-damage]:hover {
    animation: damagePulse 1.5s ease-in-out infinite;
}

/* Glow effect based on damage intensity */
.body-overlay[data-damage^="1"],
.body-overlay[data-damage^="2"],
.body-overlay[data-damage^="3"],
.body-overlay[data-damage^="4"],
.body-overlay[data-damage^="5"] {
    filter: saturate(1.2) brightness(1.1);
}

.body-overlay[data-damage^="6"],
.body-overlay[data-damage^="7"],
.body-overlay[data-damage^="8"],
.body-overlay[data-damage^="9"] {
    filter: saturate(1.5) brightness(1.2);
    border-width: 3px;
}

/* Critical hit zones (100+ damage) */
.body-overlay[data-damage*="00."],
.body-overlay[data-damage*="10."],
.body-overlay[data-damage*="11."],
.body-overlay[data-damage*="12."] {
    filter: saturate(2) brightness(1.3);
    border-width: 3px;
    animation: damagePulse 1s ease-in-out infinite;
}

/* ===== RESTORED DASHBOARD STYLES ===== */

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.25rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0 1.5rem 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Stat Card Inner Layout */
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* Servers Grid */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.server-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-ip {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: monospace;
}

.server-status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.server-status-badge.online { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.server-status-badge.offline { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

.server-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.server-stat {
    display: flex;
    flex-direction: column;
}

.server-stat-value {
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
}

.server-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===== RESTORED TABLE & LIST STYLES ===== */

.table-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .table-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.table-search {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.search-input {
    flex: 1;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

.table-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 4px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.filter-btn.active {
    background: rgba(147, 51, 234, 0.1);
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

.filter-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.table-wrapper {
    width: 100%;
    /* overflow-x: auto; Removed as per user request */
}

.table-pagination {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

/* Logs Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: monospace;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.data-table th {
    background: rgba(0,0,0,0.2);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.data-table tr:hover {
    background: rgba(255,255,255,0.02);
}

/* ===== RESTORED WEBHOOK STYLES ===== */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); /* Increased from 350px for wider cards */
    gap: 1.5rem;
}

.webhook-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.webhook-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.webhook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.webhook-name {
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.webhook-name i {
    color: #5865F2; /* Discord Color */
    font-size: 1.4rem;
}

.webhook-url {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-size: 0.85rem;
    background: rgba(0,0,0,0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    word-break: break-all;
    border: 1px solid var(--border-color);
}

.webhook-events {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.webhook-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

/* ===== LAYOUT FIXES (RESTORED & IMPROVED) ===== */

/* Fix Overflow Issues - Main Content */
.main-content {
    width: 100%;
    margin-left: 280px;
    padding: 2rem;
    overflow-x: hidden; /* Prevent horizontal scroll on the main container */
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding-top: 80px;
    }
}

/* Fix Player Profile Overflow - Wrap Content */
.player-header {
    flex-wrap: wrap; /* Allow wrapping */
    gap: 2rem;
    height: auto; /* Remove fixed height if any */
}

.player-header-main {
    flex-wrap: wrap; /* Allow username/avatar to wrap */
}

.player-meta-grid {
    flex-wrap: wrap; /* Allow stats to wrap to next line */
    gap: 1.5rem;
}

/* Fix Settings Table - User Access */

/* Allow Name/Message fields to wrap if needed */
.table td.wrap-text {
    white-space: normal;
    word-break: break-word;
}

/* Restore Player List CSS "How it used to be" */
#playersTable td {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.player-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-badges {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.badge-icon {
    font-size: 0.8rem;
}

.badge-icon.new-player {
    color: var(--warning);
}

.badge-icon.alt-account {
    color: var(--danger);
}

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

.player-row:hover .player-name {
    color: var(--primary-purple);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-secondary { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }
.badge-primary { background: rgba(147, 51, 234, 0.2); color: var(--primary-purple); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-info { background: rgba(59, 130, 246, 0.2); color: var(--info); }

.steam-id, .ip-address {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

#playersTable td .player-name-link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

#playersTable td .player-name-link:hover {
    color: var(--primary-purple);
}

/* Fix Text Overlapping / Misalignment */
.stat-value, .server-stat-value, .combat-stat-value {
    line-height: 1.2; /* Tighter line height for large numbers */
}

.btn {
    white-space: nowrap; /* Buttons shouldn't wrap text */
}

/* Fix Combat Grid Responsiveness */
@media (max-width: 900px) {
    .combat-details-grid {
        grid-template-columns: 1fr;
    }
    
    .body-hit-visual {
        margin: 2rem auto;
    }
    
    .combat-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .player-header-main {
        flex-direction: column;
        text-align: center;
    }
    
    .player-meta-grid {
        justify-content: center;
    }
    
    .combat-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
    }
    
    .search-input {
        max-width: 100%;
    }
}

/* Enhanced Player List UI */
.player-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.player-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-main-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.2;
}

.player-sub-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator-dot.online {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-indicator-dot.offline {
    background-color: var(--text-muted);
}

.enhanced-table-row {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.enhanced-table-row:hover {
    background-color: var(--bg-card-hover) !important;
    transform: translateX(4px);
    border-left-color: var(--primary-purple);
    box-shadow: var(--shadow-md);
}

.detail-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-pill i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.time-display {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.action-btn-group {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.enhanced-table-row:hover .action-btn-group {
    opacity: 1;
}
