/* chat.css — стили для интерактивного тест-гида */
:root {
    --primary-green: #2e7d32;
    --light-green: #4caf50;
    --dark-green: #1e4d2e;
}

/* Hero-блок */
.chat-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    margin-top: -80px;
    padding-top: 120px !important;
    padding-bottom: 40px;
    color: white;
    min-height: 200px;
    display: flex;
    align-items: center;
    text-align: center;
}

.chat-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Скрываем hero на мобильных, если не стартовый шаг */
@media (max-width: 768px) {
    .chat-hero.hide-on-mobile {
        display: none !important;
    }
}

/* Карточка квиза */
.interactive-quiz-container {
    max-width: 900px;
    margin: 0 auto;
}

.quiz-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

/* Статус-бар */
.quiz-status-bar {
    border-bottom: 1px solid #f1f5f9;
}

.quiz-icon-badge {
    background: #e6fffa;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #0d9488;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Контентная зона */
.quiz-content-body {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
}
.quiz-content-body ul,
.quiz-content-body ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.quiz-content-body li {
    margin-bottom: 0.5rem;
}

/* Главные кнопки */
.quiz-action-btn {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}
.quiz-action-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}
.quiz-action-btn:active {
    transform: translateY(0);
}

/* Навигационные кнопки (сетка) */
.quiz-nav-wrapper {
    border-top: 1px dashed #e2e8f0;
}

.quiz-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    width: 100%;
}

.quiz-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #f8fafc;
    color: #64748b !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}
.quiz-secondary-btn:hover {
    background-color: #f1f5f9;
    color: #334155 !important;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.quiz-secondary-btn:active {
    transform: translateY(0);
}

/* Ожидание (wait) */
.quiz-processing-icon .spinner-grow {
    width: 3rem;
    height: 3rem;
    background-color: #10b981;
}

.progress {
    height: 10px;
    background-color: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.2s linear;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .chat-hero {
        padding-top: 100px !important;
        min-height: 150px;
    }
    .quiz-card {
        padding: 1.5rem !important;
    }
    .quiz-content-body {
        font-size: 1rem;
    }
    .quiz-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .quiz-card {
        padding: 1rem !important;
    }
    .quiz-nav-grid {
        grid-template-columns: 1fr 1fr;
    }
    .quiz-secondary-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}