/*
   Quantum AdVision Design System v6.9 (Slate Aerogel)
   File: 02_layout.css
   Responsibility: Sidebar Structure, Blur Effects, Grid
*/

/* --- GLOBAL RESET --- */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }

body {
    background-color: var(--bg-body);
    background-image: var(--bg-carbon-texture);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0; padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    transition: color 0.3s ease;
}

/* --- SIDEBAR: LIGHTER SLATE AEROGEL --- */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 18rem;
    padding: 2rem 1.5rem;

    /* ИЗМЕНЕНИЕ: ФОН ЕЩЕ СВЕТЛЕЕ (Slate Grey) */
    /* Значения RGB ~100-110, это светлый графит/сланец */
    background: linear-gradient(
        165deg, 
        rgba(105, 115, 125, 0.95) 0%,   /* Верх: Светлый Сланец */
        rgba(85, 95, 105, 0.85) 100%    /* Низ: Средний серый */
    ) !important;

    /* BLUR */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Огранка справа */
    border-right: 1px solid rgba(255, 255, 255, 0.15);

    /* Тень (чуть мягче, так как фон светлее) */
    box-shadow:
        20px 0 50px rgba(0,0,0,0.4),
        inset 1px 1px 0 rgba(255,255,255,0.1);

    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    margin-bottom: 3rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-header img {
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(var(--accent-primary-rgb), 0.5));
}

.sidebar-header h2 {
    font-family: var(--font-heading);
    font-weight: 700; font-size: 1.5rem;
    letter-spacing: 0.12em; line-height: 1.2;
    text-transform: uppercase; margin: 0;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.sidebar-header span.sub-brand {
    font-family: var(--font-body);
    font-weight: 300; font-size: 0.75rem;
    letter-spacing: 0.2em; color: var(--text-secondary);
    text-transform: uppercase; margin-top: 0.5rem; display: block;
}

/* --- NAV PILLS --- */
.nav-pills { display: flex; flex-direction: column; gap: 0.5rem; }

.nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.7) !important; /* Чуть повысил непрозрачность для читаемости на светлом фоне */
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-pills .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1); 
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.nav-pills .nav-link.active {
    color: var(--accent-primary) !important;
    background: linear-gradient(90deg, rgba(var(--accent-primary-rgb), 0.15) 0%, transparent 100%);
    border-left: 3px solid var(--accent-primary);
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.15),
        inset 2px 0 10px rgba(var(--accent-primary-rgb), 0.1);
    text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.4);
}

.nav-pills .nav-link i {
    width: 24px; margin-right: 12px; text-align: center; font-size: 1.1em;
}

/* --- FOOTER --- */
.sidebar-footer {
    margin-top: auto; padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.sidebar-footer p {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--text-secondary); opacity: 0.8;
}

/* --- CONTENT AREA --- */
.content {
    margin-left: 18rem;
    padding: 3rem 3.5rem;
    position: relative; z-index: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); backdrop-filter: blur(20px); }
    .content { margin-left: 0; padding: 1.5rem; }
}
