/* ============================================================ */
/* ОСНОВНЫЕ СТИЛИ */
/* static/css/style.css */
/* ============================================================ */

/* ------------------------------------------------------------
   ОБЩИЕ СТИЛИ
------------------------------------------------------------ */
body {
    min-height: 100vh;
    background: #f8f9fa;
}

/* ------------------------------------------------------------
   FLASH СООБЩЕНИЯ
------------------------------------------------------------ */
.flash-messages {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    max-width: 500px;
}

/* ------------------------------------------------------------
   КАРТОЧКИ
------------------------------------------------------------ */
.card {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* ------------------------------------------------------------
   ТАБЛИЦЫ
------------------------------------------------------------ */
.table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background: #f1f3f5;
}

/* ------------------------------------------------------------
   ПАНЕЛЬ УПРАВЛЕНИЯ
------------------------------------------------------------ */
.dashboard-card {
    border: none;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
}

.dashboard-card .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dashboard-card .count {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ------------------------------------------------------------
   АДАПТИВНОСТЬ
------------------------------------------------------------ */
@media (max-width: 768px) {
    .flash-messages {
        left: 20px;
        right: 20px;
        min-width: unset;
    }
}

/* ------------------------------------------------------------
   ПОЛЯ ВВОДА
------------------------------------------------------------ */
.form-control:focus,
.form-select:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 217, 0.25);
}

/* ------------------------------------------------------------
   КНОПКИ
------------------------------------------------------------ */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
}

.btn-primary {
    background: #4a90d9;
    border-color: #4a90d9;
}

.btn-primary:hover {
    background: #3a7bc8;
    border-color: #3a7bc8;
}

/* ------------------------------------------------------------
   БЭДЖИ
------------------------------------------------------------ */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
}

/* ------------------------------------------------------------
   ЗАГОЛОВКИ
------------------------------------------------------------ */
h2 i {
    margin-right: 8px;
}

/* ------------------------------------------------------------
   НАВИГАЦИЯ
------------------------------------------------------------ */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}