/* Стили боковой панели навигации */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--sidebar-bg);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

/* Логотип/Заголовок в сайдбаре */
.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-brand {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.sidebar-brand i {
    color: var(--accent-color);
}

/* Навигационные ссылки */
.sidebar-nav {
    flex-grow: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-item {
    list-style: none;
    margin-bottom: 0.25rem;
}

.nav-link-custom {
    padding: 0.85rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.nav-link-custom:hover {
    background-color: rgba(255,255,255,0.05);
    color: white;
    border-left-color: rgba(255,255,255,0.3);
}

.nav-link-custom.active {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

.nav-link-custom i {
    width: 25px;
    margin-right: 12px;
    font-size: 1.1rem;
    text-align: center;
}

/* Нижняя часть сайдбара */
.sidebar-footer {
    padding: 1.5rem;
    background-color: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Основной контент (отступ справа от сайдбара) */
.main-wrapper {
    margin-left: var(--sidebar-width);
    padding: 2.5rem;
    transition: all 0.3s ease;
    min-height: 100vh;
}

/* Мобильная версия */
@media (max-width: 992px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.show {
        left: 0;
    }
    .main-wrapper {
        margin-left: 0;
        padding: 4rem 1rem 2rem 1rem;
    }
    .sidebar-toggler {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 10px 14px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: all 0.2s;
    }
    .sidebar-toggler:active {
        transform: scale(0.9);
    }
}

@media (min-width: 993px) {
    .sidebar-toggler {
        display: none;
    }
}

/* Переключатель темы в сайдбаре */
.theme-switch-container {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch-wrap {
    background: rgba(0,0,0,0.2);
    padding: 8px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    margin-top: 0;
}

