/* ============================================================
   БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕГО ПРОЕКТА
   ============================================================ */

/* ============================================================
   1. Сброс и базовые настройки
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   2. Сайдбар
   ============================================================ */
.sidebar {
    min-height: 100vh;
    background: #1a1a2e;
    color: white;
    padding: 20px 0;
}

.sidebar .brand {
    padding: 0 20px 20px;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.sidebar .nav-link.active {
    color: white;
    background: #1a73e8;
}

.sidebar .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* ============================================================
   3. Основной контент
   ============================================================ */
.main-content {
    padding: 24px 30px;
}

/* ============================================================
   4. Карточки (универсальные)
   ============================================================ */
.table-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ============================================================
   5. Статусы
   ============================================================ */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #e9ecef;
    color: #212529;
}

/* ============================================================
   6. Утилиты
   ============================================================ */
.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: #f8f9fa;
}

.text-muted-light {
    color: #adb5bd;
}

.filter-section {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ============================================================
   7. Анимации
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}