/**
 * Frontend Styles for Meteo Analysis BVS Plugin
 * 
 * @package Meteo_Analysis_BVS
 */

/* Общие стили для всех страниц плагина */
.meteo-dashboard,
.meteo-map-editor,
.meteo-analysis-results,
.meteo-tables-view,
.meteo-charts-view,
.meteo-report-generator,
.meteo-user-settings,
.meteo-analysis-history,
.meteo-data-export-import {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовки страниц */
.meteo-dashboard .dashboard-header h1,
.meteo-map-editor .map-editor-header h1,
.meteo-analysis-results .analysis-header h1,
.meteo-tables-view .tables-header h1,
.meteo-charts-view .charts-header h1,
.meteo-report-generator .report-header h1,
.meteo-user-settings .settings-header h1,
.meteo-analysis-history .history-header h1,
.meteo-data-export-import .export-import-header h1 {
    font-size: 28px;
    color: #0088cc;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meteo-dashboard .dashboard-header .description,
.meteo-map-editor .map-editor-header .description,
.meteo-analysis-results .analysis-header .description,
.meteo-tables-view .tables-header .description,
.meteo-charts-view .charts-header .description,
.meteo-report-generator .report-header .description,
.meteo-user-settings .settings-header .description,
.meteo-analysis-history .history-header .description,
.meteo-data-export-import .export-import-header .description {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0077b5 0%, #0066a0 100%);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-outline {
    background: transparent;
    border: 2px solid #0088cc;
    color: #0088cc;
}

.btn-outline:hover {
    background: #0088cc;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

/* Карточки */
.analysis-card,
.table-card,
.chart-card,
.settings-card,
.export-import-card,
.report-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 25px;
}

.card-header {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    color: white;
    padding: 15px 20px;
}

.card-header h2,
.card-header h3,
.card-header h4 {
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.card-body {
    padding: 20px;
}

/* Статусы */
.status-safe {
    color: #27ae60;
    font-weight: 600;
}

.status-warning {
    color: #f39c12;
    font-weight: 600;
}

.status-caution {
    color: #fd7e14;
    font-weight: 600;
}

.status-danger {
    color: #e74c3c;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.safe {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.warning {
    background: #fff8e1;
    color: #e65100;
}

.status-badge.caution {
    background: #ffeacc;
    color: #9a5800;
}

.status-badge.danger {
    background: #ffebee;
    color: #c62828;
}

/* Уведомления */
.meteo-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.meteo-alert-warning {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.meteo-alert-danger {
    background: #ffebee;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.meteo-alert-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.meteo-alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #212529;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #0088cc;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
    outline: none;
}

.form-control[disabled] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.description {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

/* Сетки */
.dashboard-grid,
.settings-grid,
.export-import-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.tables-grid,
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .meteo-dashboard,
    .meteo-map-editor,
    .meteo-analysis-results,
    .meteo-tables-view,
    .meteo-charts-view,
    .meteo-report-generator,
    .meteo-user-settings,
    .meteo-analysis-history,
    .meteo-data-export-import {
        padding: 15px;
    }
    
    .dashboard-grid,
    .settings-grid,
    .export-import-grid,
    .analysis-grid,
    .tables-grid,
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card-header h2,
    .card-header h3 {
        font-size: 18px;
    }
}