/**
 * SYSTEM-админка: боковое меню и отступ контента (эталон — sys_country).
 * Подключайте на страницах /index_sys, /sys_*.
 * Для дашборда с портальной шапкой: body.sys-admin-with-header
 */

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    margin: 0;
    background: #f4f6f9;
    color: #333;
}

body.sys-admin-with-header {
    padding-top: 64px;
}

.sidebar {
    width: 200px;
    background: #343a40;
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 8px;
    z-index: 1000;
}

body.sys-admin-with-header .sidebar {
    top: 64px;
    height: calc(100vh - 64px);
}

.sidebar-brand {
    display: block;
    padding: 12px 16px;
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-brand:hover {
    color: #fff;
}

/* Базовый верх SYSTEM-sidebar: заголовок «System панель» + слот объявлений (как в CRM-рейке) */
.sidebar .portal-sidebar-top {
    margin-bottom: 4px;
}

.sidebar .portal-sidebar-top__label {
    padding: 6px 12px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.nav-link {
    display: block;
    color: #adb5bd;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #3e444a;
    color: white;
}

.nav-link.active {
    background: #007bff;
    color: white;
    font-weight: 600;
    border-left: 3px solid #fff;
}

.dropdown-btn {
    position: relative;
}

.dropdown-btn::after {
    content: '▼';
    font-size: 8px;
    position: absolute;
    right: 12px;
    top: 10px;
    color: #6c757d;
}

.dropdown-container {
    display: none;
    background: #2c3136;
}

.dropdown-container.show {
    display: block;
}

.dropdown-item {
    padding-left: 32px;
    font-size: 12px;
    color: #adb5bd;
    border-left: none !important;
}

.dropdown-item:hover {
    color: #fff;
    background: #3e444a;
}

.dropdown-item.active {
    color: #fff;
    background: #007bff;
    font-weight: 600;
}

.main-content {
    margin-left: 200px;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}
