:root {
    --bg-color: #0f1014;
    --sidebar-bg: #16181d;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --accent-color: #6c5ce7;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;
    --blue: #1e90ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(108, 92, 231, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

.logo img {
    width: 35px;
}

.logo .accent {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-links li {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links li i {
    font-size: 1.1rem;
    width: 24px;
}

.nav-links li:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.nav-links li.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

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

/* Content Area */
.content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.search-bar {
    position: relative;
    width: 400px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-bar input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 12px 12px 12px 45px;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.search-bar input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .icon {
    width: 54px;
    height: 54px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 14px;
}

.stat-card .icon.blue { background: rgba(30, 144, 255, 0.1); color: var(--blue); }
.stat-card .icon.green { background: rgba(46, 213, 115, 0.1); color: var(--success); }

.stat-card .info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 4px;
}

.stat-card .info p {
    font-size: 1.8rem;
    font-weight: 800;
}

/* Tables */
.recent-bans-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
}

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

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

.section-header button {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.section-header button:hover {
    background: var(--accent-color);
    color: white;
}

.table-wrapper {
    overflow-x: auto;
}

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

th {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.85rem;
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

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

.status-badge.banned { background: rgba(255, 71, 87, 0.1); color: var(--danger); }
.status-badge.active { background: rgba(46, 213, 115, 0.1); color: var(--success); }

/* Sections Display */
.dashboard-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.dashboard-section.active {
    display: block;
}

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

/* Live Players */
.live-badge {
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

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

.player-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-card img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.player-card .player-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.player-card .player-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Settings */
.settings-container {
    max-width: 600px;
}

.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 20px;
}

.settings-card h3 { margin-bottom: 1rem; }
.settings-card p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.9rem; }

.config-item {
    margin-bottom: 1.5rem;
}

.config-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.config-item input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--card-border);
    padding: 12px;
    border-radius: 10px;
    color: var(--accent-color);
    font-family: monospace;
    font-weight: 600;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(100px);
    transition: 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
}
