:root {
    /* NightShift Palette - Logo Inspired */
    --primary: #9d4edd; /* Vibrant Purple */
    --primary-glow: rgba(157, 78, 221, 0.4);
    --secondary: #c7ff00; /* Neon Lime/Acid Green */
    --secondary-glow: rgba(199, 255, 0, 0.4);
    
    --success: #c7ff00;
    --warning: #ff9e00;
    --error: #ff0054;
    --info: #7209b7;
    --debug: #4cc9f0;

    /* Backgrounds */
    --bg-dark: #050505;
    --bg-card: rgba(15, 15, 20, 0.8);
    --bg-sidebar: rgba(8, 8, 12, 0.98);
    --bg-hover: rgba(255, 255, 255, 0.05);
    
    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Effects */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --sidebar-width: 280px;
    --topbar-height: 80px;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

h1, h2, h3, .logo-text h1 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

/* Navigation */
.nav-menu {
    padding: 24px 16px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 6px;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: white;
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.nav-item svg {
    opacity: 0.7;
}

.nav-item.active svg {
    opacity: 1;
}

/* Sidebar Stats */
.sidebar-stats {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.stat-card-sidebar:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-dim);
}

.stat-card-sidebar .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.bg-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.bg-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.bg-yellow { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.bg-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.bg-purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

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

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Server Status Footer */
.sidebar-footer {
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 15px var(--success);
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0% { opacity: 1; box-shadow: 0 0 5px var(--success); }
    50% { opacity: 0.7; box-shadow: 0 0 20px var(--success); }
    100% { opacity: 1; box-shadow: 0 0 5px var(--success); }
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    height: var(--topbar-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 12, 16, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.search-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0 16px;
    width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 12px 0;
    width: 100%;
    font-size: 14px;
}

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

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 16px 6px 6px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

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

.username {
    font-size: 14px;
    font-weight: 600;
}

/* Filters bar */
.filters-bar {
    display: flex;
    gap: 12px;
    padding: 24px 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.filter-item {
    flex: 1;
}

.filter-item label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.select-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.select-input:hover {
    border-color: var(--text-dim);
}

.select-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.select-input option {
    background-color: #1a1a1a;
    color: white;
}

/* Logs Section */
.logs-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 32px 32px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.logs-table-container {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow-y: auto;
    box-shadow: var(--glass-shadow);
}

/* Log Item Style */
.log-entry {
    display: grid;
    grid-template-columns: 80px 120px 140px 1fr 140px;
    align-items: flex-start;
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s ease;
    animation: fadeIn 0.4s ease-out both;
}

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

.log-entry:hover {
    background: rgba(255, 255, 255, 0.02);
}

.log-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    width: fit-content;
}

.log-badge.info { background: rgba(59,130,246,0.15); color: #60a5fa; }
.log-badge.warn { background: rgba(245,158,11,0.15); color: #fbbf24; }
.log-badge.error { background: rgba(239,68,68,0.15); color: #f87171; }
.log-badge.debug { background: rgba(139,92,246,0.15); color: #a78bfa; }

.log-script {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-source {
    font-family: 'Monaco', monospace;
    font-size: 12px;
    color: var(--success);
    font-weight: 700;
}

.log-message {
    font-size: 13px;
    color: var(--text-main);
    word-break: break-all;
}

.log-timestamp {
    font-size: 11px;
    color: var(--text-dim);
    text-align: right;
    font-family: monospace;
}

/* Login Page Only */
.login-page {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent),
                radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.15), transparent),
                var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(20, 24, 33, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--glass-shadow);
}

.login-logo img {
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.2));
}

.login-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.login-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5865f2;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
    width: fit-content;
    margin: 0 auto;
}

.discord-btn svg {
    width: 20px;
    height: 20px;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

.login-footer {
    margin-top: 60px;
    color: var(--text-dim);
    font-size: 12px;
}

/* Animations */
[data-animate] {
    opacity: 0;
}

.animated {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Logic for dark/light mode toggle in original script might need variables */
