/* Дополнительные стили для виртуальной лаборатории */
.section-content {
    transition: opacity 0.3s ease-in-out;
}

.section-content.hidden {
    display: none;
}

.nav-btn.active {
    background-color: rgba(79, 70, 229, 0.8);
    border-bottom: 3px solid white;
}

/* Анимации для интерактивных элементов */
.frequency-test {
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.frequency-test:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Стили для диаграммы уха */
#ear-diagram {
    position: relative;
}

.ear-hotspot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.ear-hotspot:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Результаты тестов */
.test-result-item {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
    background-color: #eff6ff;
}

.test-result-positive {
    border-left-color: #10b981;
    background-color: #ecfdf5;
    color: #065f46;
}

.test-result-negative {
    border-left-color: #ef4444;
    background-color: #fef2f2;
    color: #991b1b;
}

/* Стили для протокола */
.protocol-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}

.protocol-field {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    transition: border-color 0.2s ease;
}

.protocol-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .nav-btn i {
        display: none;
    }
    
    .frequency-test {
        padding: 8px;
    }
    
    .frequency-test button {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Индикаторы прогресса */
.progress-indicator {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #10b981;
    transition: width 0.3s ease;
}

/* Кнопки управления звуком */
.audio-control {
    position: relative;
    overflow: hidden;
}

.audio-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.audio-control.playing::before {
    left: 100%;
}

/* Всплывающие подсказки */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Стили для экспорта */
.export-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

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

/* Статистика */
.stat-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}