:root {
    --bg-dark: #0a0a0f;
    --sidebar-bg: rgba(16, 16, 24, 0.65);
    --card-bg: rgba(24, 25, 36, 0.5);
    --primary: #c39afd; /* Back to Purple */
    --primary-dim: #9468e8;
    --primary-glow: rgba(195, 154, 253, 0.4);
    --secondary: #272433;
    --accent: #ffe0b2;
    --danger: #ff4757;
    --success: #2ecc71;
    --text-main: #ffffff;
    --text-muted: #a19db3;
    --border: rgba(195, 154, 253, 0.15);
}

body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(148, 104, 232, 0.05) 0%, rgba(10, 10, 15, 1) 40%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 50%; left: 50%;
    width: 800px; height: 800px;
    background-image: url('../img/1K.gif'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
    animation: floatBgLogo 12s ease-in-out infinite alternate;
    will-change: transform; 
}

@keyframes floatBgLogo {
    0% { transform: translate(-50%, -48%) scale(1); opacity: 0.02; }
    100% { transform: translate(-50%, -52%) scale(1.05); opacity: 0.05; }
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 40px;
}

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

.nav-links li {
    margin-bottom: 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--primary-glow);
    color: var(--white);
    transform: translateX(5px);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.btn-primary {
    background: var(--primary);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab {
    padding: 10px 20px;
    background: var(--secondary);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-muted);
}

.tab.active {
    background: var(--primary);
    color: black;
}

.tab-content {
    display: none;
}

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

.list-item {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: 0.3s;
}

.list-item:hover {
    border-color: var(--border);
    background: rgba(255,255,255,0.05);
}
