:root {
    --background: #020617;
    --sidebar-bg: rgba(2, 6, 23, 0.7);
    --card-bg: rgba(30, 41, 59, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --blue-glow: rgba(59, 130, 246, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.grid {
    display: grid;
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

/* Layout */
.sidebar {
    width: 256px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--border-color);
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.main-content {
    margin-left: 256px;
    padding: 2.5rem;
    min-height: 100vh;
}

/* Sidebar Elements */
.logo-container {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    margin: 0 1rem 0.5rem 1rem;
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(30, 41, 59, 0.5);
    color: #f1f5f9;
}

.nav-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.nav-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.glass-card:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Stat Cards */
.stat-card {
    padding: 1.5rem;
    border-radius: 40px;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.stat-blue {
    background: linear-gradient(to top right, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
    border-color: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.stat-green {
    background: linear-gradient(to top right, rgba(16, 185, 129, 0.1), rgba(20, 184, 166, 0.05));
    border-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.stat-amber {
    background: linear-gradient(to top right, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.05));
    border-color: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.stat-indigo {
    background: linear-gradient(to top right, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.05));
    border-color: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

/* Buttons */
.btn-quick {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 16px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
}

.btn-quick:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #60a5fa;
}

/* Header */
.page-header h2 {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 0.25rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 900;
}

/* Transitions */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}