@charset "UTF-8";
/* ===== БАЗОВЫЕ СТИЛИ И СБРОС ===== */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили body */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f9fafb;
    color: #374151;
    line-height: 1.6;
}

/* Основной контейнер */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Базовые анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Базовые стили для контента вкладок */
.tab-content {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.tab-content.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    animation: fadeIn 0.3s ease;
}

/* Удалены специфичные правила для #critical и #maturity - все вкладки теперь используют одинаковые стили */

/* Унификация отступов и выравнивания для всех вкладок */
.tab-content {
    padding-top: 0;
    margin-top: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* ===== ОБЩИЕ ПРАВИЛА ДЛЯ КОМПОНЕНТОВ ===== */

/* Контейнеры графиков */
.chart-container {
    margin-bottom: 2rem;
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.chart-subtitle {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Элементы управления графиками */
.chart-controls {
    margin-bottom: 1rem;
}

.chart-toggles {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

/* Большие контейнеры графиков */
.large-chart {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    overflow-x: auto;
}

/* Легенды и описания */
.legend-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-grid {
    display: grid;
    gap: 0.5rem;
}

/* ===== ОБЩИЕ ПРАВИЛА ДЛЯ КАРТОЧЕК ===== */

/* Базовые карточки */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

/* Заголовки карточек */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
    flex: 1;
}

.card-icon {
    font-size: 1.25rem;
    color: #6b7280;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Значения карточек */
.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

/* Подзаголовки карточек */
.card-subtitle {
    font-size: 0.85rem;
    color: #64748b;
}

/* Сетки карточек */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Цветовые варианты карточек */
.card.success {
    border-left: 4px solid #10b981;
}

.card.warning {
    border-left: 4px solid #f59e0b;
}

.card.info {
    border-left: 4px solid #3b82f6;
}

.card.danger {
    border-left: 4px solid #ef4444;
}

.card.primary {
    border-left: 4px solid #6366f1;
}

.card.secondary {
    border-left: 4px solid #6b7280;
}

.card.purple {
    border-left: 4px solid #8b5cf6;
}

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

/* Элементы статистики */
.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.stat:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

/* Иконки и значения статистики */
.stat-icon {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== ОБЩИЕ ПРАВИЛА ДЛЯ ЗАГОЛОВКОВ СЕКЦИЙ ===== */

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* ===== ОБЩИЕ ПРАВИЛА ДЛЯ ПРОГРЕСС-БАРА ===== */

.progress-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
}

.progress-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e40af;
}

.progress-bar {
    background: #e5e7eb;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* ===== ОБЩИЕ ПРАВИЛА ДЛЯ КОНТЕЙНЕРОВ ===== */

.heatmap-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    overflow-x: auto;
}

/* ===== ОБЩИЕ ПРАВИЛА ДЛЯ ПЕРЕКЛЮЧАТЕЛЕЙ ===== */

/* Базовые переключатели */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #3b82f6;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-slider:hover {
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.toggle-label {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

/* Специальные переключатели для апреля */
.april-toggle .toggle-label {
    color: #7c3aed;
    font-weight: 500;
}

.april-toggle input:checked + .toggle-slider {
    background-color: #7c3aed;
}

.april-toggle .toggle-slider:hover {
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
}

/* ===== ОБЩИЕ ПРАВИЛА ДЛЯ ФИЛЬТРОВ ===== */

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.filter-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-button:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.filter-button.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.filter-button:active {
    transform: translateY(0);
}

/* ===== ОБЩИЕ ПРАВИЛА ДЛЯ NPS ===== */

.nps-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.nps-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.nps-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.nps-promoters .nps-color { background: #10b981; }
.nps-passives .nps-color { background: #f59e0b; }
.nps-detractors .nps-color { background: #ef4444; }

.nps-toggles {
    display: flex;
    gap: 0.5rem;
}

.nps-interpretation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.nps-scale h4 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.nps-scale-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.nps-scale-item {
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
}

.nps-scale-item.excellent {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid #86efac;
}

.nps-scale-item.good {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
}

.nps-scale-item.acceptable {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #93c5fd;
}

.nps-scale-item.needs-improvement {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border: 1px solid #fca5a5;
}

.nps-range {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.nps-label {
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 768px) {
    .tab-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .chart-toggles {
        flex-direction: column;
        align-items: stretch;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .progress-stats {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .large-chart {
        padding: 1rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .nps-info {
        justify-content: center;
    }

    .nps-scale-items {
        grid-template-columns: 1fr;
    }

    .toggle-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tab-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}