/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

/* --- LAYOUT GRID --- */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.logo-container {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.neon-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #000;
    box-shadow: var(--shadow-neon);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: var(--grad-glow);
    border-color: rgba(0, 243, 255, 0.2);
    color: var(--neon-blue);
}

.nav-item i {
    width: 20px;
    height: 20px;
}

/* --- MAIN CONTENT --- */
.main-content {
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, rgba(0, 243, 255, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(188, 19, 254, 0.05), transparent 40%);
    position: relative;
}

/* Header */
.top-bar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#page-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.5rem;
}

.content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}