/* Основные стили */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
}

/* Карточки и заголовки */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* Элементы списка экообменников */
.eco-exchanger-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Контейнер результатов */
.results-container {
    min-height: 200px;
}

/* График трафика */
.traffic-chart {
    height: 200px;
    width: 100%;
}

/* Элементы статистики */
.stats-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
}

.stats-item .value {
    font-size: 24px;
    font-weight: bold;
    color: #0d6efd;
}

.stats-item .label {
    font-size: 14px;
    color: #6c757d;
}

/* Карта */
#map {
    border-radius: 0 0 10px 10px;
    height: 300px;
    width: 100%;
}

/* Плейсхолдер */
.placeholder-block {
    padding: 30px;
    text-align: center;
    color: #6c757d;
}

/* Навигация */
nav {
    background-color: #343a40;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Стили для новых компонентов выбора времени */
.campaign-period-card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    border-radius: 0.5rem;
}

.campaign-period-card .card-header {
    border-radius: 0.5rem 0.5rem 0 0;
}

.time-slots-container {
    max-height: 200px;
    overflow-y: auto;
}

.custom-days-list {
    max-height: 500px;
    overflow-y: auto;
}

.day-schedule-item {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.2s ease;
}

.day-schedule-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.time-slot {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.25rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Убедимся, что все иконки выглядят хорошо */
.fas {
    width: 16px;
    text-align: center;
}

/* Дополнительные стили для улучшения интерфейса */
.main-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.section-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.form-control:focus, .form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #3756a4;
    border-color: #3756a4;
}

.stats-card {
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stats-card .value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.stats-card .label {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

/* Улучшенный дизайн для заголовка "Период кампании" */
.campaign-period-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Стили для чекбокса автозаполнения */
.auto-fill-container {
    display: flex;
    align-items: center;
    margin-top: 8px;
    padding: 6px 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.auto-fill-container .form-check-input {
    margin-right: 8px;
}

.auto-fill-container .form-check-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Анимация для автоматического обновления частоты */
@keyframes highlight {
    0% { background-color: #fff; }
    50% { background-color: rgba(78, 115, 223, 0.1); }
    100% { background-color: #fff; }
}

.highlight-update {
    animation: highlight 1s ease;
}

/* Улучшение стилей для инпутов времени */
.time-inputs {
    display: flex;
    gap: 10px;
}

.time-inputs .time-input-group {
    flex: 1;
}

stats-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stats-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-preview .value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stats-preview .label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Стили для таблицы экообменников */
.location-info .fw-bold {
    color: #2c3e50;
    margin-bottom: 3px;
}

.traffic-stats {
    text-align: center;
}

.traffic-stats .fw-bold {
    display: block;
    font-size: 1.1rem;
}

.viewability-indicator .progress {
    border-radius: 10px;
    overflow: hidden;
}

.viewability-indicator .progress-bar {
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимация для обновления значений */
.highlight-update {
    animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
    0% { background-color: transparent; }
    50% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

/* Стили для карточек настроек */
.card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

/* Стили для вкладок */
.nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: #007bff;
    color: white;
    border: none;
}

.nav-tabs .nav-link:hover {
    background: #e9ecef;
    color: #495057;
    border: none;
}

.nav-tabs .nav-link.active:hover {
    background: #0056b3;
    color: white;
}

/* Стили для контента вкладок */
.tab-content {
    background: white;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 500px;
}

.tab-pane {
    padding: 20px;
}

/* Стили для формы настроек */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
    font-weight: 500;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Стили для таблицы */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    padding: 12px;
    vertical-align: middle;
    border-color: #e9ecef;
}

/* Бейджы */
.badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 6px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* Кнопки */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1c7a72 100%);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: transparent;
}

/* Алерты */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-light {
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stats-preview .value {
        font-size: 1.4rem;
    }
    
    .traffic-stats .fw-bold {
        font-size: 1rem;
    }
    
    .table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Анимация загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Стили для тостов */
.toast-container .toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast .toast-body {
    padding: 12px 16px;
    font-weight: 500;
}

/* Улучшенная типографика */
h5, h6 {
    font-weight: 600;
    color: #2c3e50;
}

.text-muted {
    color: #6c757d !important;
}

/* Кастомные утилиты */
.fw-bold {
    font-weight: 600 !important;
}

.border-radius-lg {
    border-radius: 12px !important;
}

/* Стили для главного контейнера */
.main-container {
    margin-top: 20px;
}

/* Улучшенные переходы */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Дополнительные стили для вкладки управления проходимостью */

/* Стили для статистических карточек превью */
.stats-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stats-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-preview .value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stats-preview .label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* НОВЫЕ стили для блока анализа Яндекс */
.analysis-result {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для карточки результатов анализа */
.analysis-result .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Стили для кнопки анализа */
#analyzeAddressBtn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#analysisAddress {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Стили для результата расчета Яндекс */
#yandexCalculationResult {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Стили для интерактивных элементов */
.input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
    font-weight: 500;
    min-width: 45px;
    justify-content: center;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Стили для карточек с данными */
.card .card-header {
    font-weight: 600;
    font-size: 0.95rem;
}

.card .card-header i {
    opacity: 0.8;
}

/* Стили для алертов с информацией */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #b8daff;
    color: #0c5460;
}

.alert-light {
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
}

/* Стили для бейджей */
.badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529 !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}

/* Стили для таблицы экообменников */
.location-info .fw-bold {
    color: #2c3e50;
    margin-bottom: 3px;
}

.traffic-stats {
    text-align: center;
}

.traffic-stats .fw-bold {
    display: block;
    font-size: 1.1rem;
}

.viewability-indicator .progress {
    border-radius: 10px;
    overflow: hidden;
}

.viewability-indicator .progress-bar {
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимация для обновления значений */
.highlight-update {
    animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
    0% { background-color: transparent; }
    50% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

/* Стили для карточек настроек */
.card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

/* Стили для вкладок */
.nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: #007bff;
    color: white;
    border: none;
}

.nav-tabs .nav-link:hover {
    background: #e9ecef;
    color: #495057;
    border: none;
}

.nav-tabs .nav-link.active:hover {
    background: #0056b3;
    color: white;
}

/* Стили для контента вкладок */
.tab-content {
    background: white;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 500px;
}

.tab-pane {
    padding: 20px;
}

/* Стили для формы настроек */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Стили для таблицы */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    padding: 12px;
    vertical-align: middle;
    border-color: #e9ecef;
}

/* Кнопки */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1c7a72 100%);
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: transparent;
    color: white;
}

.btn-outline-info {
    border: 2px solid #17a2b8;
    color: #17a2b8;
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-color: transparent;
    color: white;
}

/* Стили для спиннера загрузки */
.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для модальных окон */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 20px 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    padding: 16px 24px;
}

/* Стили для тостов */
.toast-container .toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
}

.toast .toast-body {
    padding: 12px 16px;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stats-preview .value {
        font-size: 1.4rem;
    }
    
    .traffic-stats .fw-bold {
        font-size: 1rem;
    }
    
    .table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Улучшенная типографика */
h5, h6 {
    font-weight: 600;
    color: #2c3e50;
}

.text-muted {
    color: #6c757d !important;
}

/* Кастомные утилиты */
.fw-bold {
    font-weight: 600 !important;
}

.border-radius-lg {
    border-radius: 12px !important;
}

/* Стили для главного контейнера */
.main-container {
    margin-top: 20px;
}

/* Улучшенные переходы */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Дополнительные стили для новых элементов */
.list-group-item {
    border: none;
    padding: 8px 0;
    background: transparent;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Стили для превью данных */
.analysis-result .d-flex {
    margin-bottom: 8px;
}

.analysis-result .badge {
    min-width: 60px;
    text-align: center;
}

/* Стили для результатов поиска */
.nearby-objects {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.nearby-objects .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* Анимация появления результатов */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стили для таблицы экообменников */
.location-info .fw-bold {
    color: #2c3e50;
    margin-bottom: 3px;
}

.traffic-stats {
    text-align: center;
}

.traffic-stats .fw-bold {
    display: block;
    font-size: 1.1rem;
}

.viewability-indicator .progress {
    border-radius: 10px;
    overflow: hidden;
}

.viewability-indicator .progress-bar {
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимация для обновления значений */
.highlight-update {
    animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
    0% { background-color: transparent; }
    50% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

/* Стили для карточек настроек */
.card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

/* Стили для вкладок */
.nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: #007bff;
    color: white;
    border: none;
}

.nav-tabs .nav-link:hover {
    background: #e9ecef;
    color: #495057;
    border: none;
}

.nav-tabs .nav-link.active:hover {
    background: #0056b3;
    color: white;
}

/* Стили для контента вкладок */
.tab-content {
    background: white;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 500px;
}

.tab-pane {
    padding: 20px;
}

/* Стили для формы настроек */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
    font-weight: 500;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Стили для таблицы */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    padding: 12px;
    vertical-align: middle;
    border-color: #e9ecef;
}

/* Бейджы */
.badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 6px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* Кнопки */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1c7a72 100%);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: transparent;
}

/* Алерты */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-light {
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stats-preview .value {
        font-size: 1.4rem;
    }
    
    .traffic-stats .fw-bold {
        font-size: 1rem;
    }
    
    .table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Анимация загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Стили для тостов */
.toast-container .toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast .toast-body {
    padding: 12px 16px;
    font-weight: 500;
}

/* Улучшенная типографика */
h5, h6 {
    font-weight: 600;
    color: #2c3e50;
}

.text-muted {
    color: #6c757d !important;
}

/* Кастомные утилиты */
.fw-bold {
    font-weight: 600 !important;
}

.border-radius-lg {
    border-radius: 12px !important;
}

/* Стили для главного контейнера */
.main-container {
    margin-top: 20px;
}

/* Улучшенные переходы */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}