/* Общие стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container, .container-fluid {
    flex: 1;
}

/* Карточки */
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 1.5rem;
}

/* Метрики */
.metric-card {
    height: 100%;
}

.metric-card h2 {
    font-size: 2.5rem;
    margin: 10px 0;
}

.metric-card h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Формы */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.form-control-lg {
    padding: 0.75rem 1rem;
}

/* Кнопки */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Навигация */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Таблицы */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    cursor: pointer;
}

/* Бейджи */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Алерты */
.alert {
    border-radius: 10px;
    border: none;
}

.alert i {
    margin-right: 8px;
}

/* Графики */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.chart-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.chart-container h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

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

.card, .chart-container {
    animation: fadeIn 0.5s ease;
}

/* Футер */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .metric-card h2 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .chart-container {
        padding: 15px;
    }
}

/* Печать */
@media print {
    body {
        background-color: white;
    }

    .card, .chart-container {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .btn, .navbar {
        display: none;
    }

    .no-print {
        display: none !important;
    }
}

/* Дополнительные утилиты */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rounded-lg {
    border-radius: 12px;
}

/* Спиннер загрузки */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

/* Иконки */
.bi {
    vertical-align: -0.125em;
}
