/* Дополнительные стили для лабораторной работы */

/* Анимации для слайдеров */
.slider-container {
    position: relative;
}

.slider-container input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    transition: all 0.3s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Анимации для результатов симуляции */
.result-card {
    transition: all 0.5s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Пульсирующая анимация для важных элементов */
@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);
    }
}

.pulse-button {
    animation: pulse 2s infinite;
}

/* Градиенты для различных уровней угрозы */
.threat-low {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.threat-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.threat-high {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.threat-critical {
    background: linear-gradient(135deg, #7c2d12 0%, #dc2626 100%);
}

/* Эффекты для графиков */
.chart-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Анимированная загрузка */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Стили для протокола */
.protocol-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.protocol-form input,
.protocol-form textarea {
    transition: all 0.3s ease;
}

.protocol-form input:focus,
.protocol-form textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

/* Стили для уведомлений */
.notification-enter {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .simulation-container {
        padding: 1rem;
    }
    
    .climate-card {
        margin-bottom: 1rem;
    }
    
    .grid-responsive {
        grid-template-columns: 1fr;
    }
}

/* Стили для теоретической части */
.theory-image {
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.theory-image:hover {
    transform: scale(1.02);
}

/* Интерактивные элементы */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Цветовая схема для различных типов данных */
.data-co2 { color: #ef4444; }
.data-temperature { color: #f59e0b; }
.data-sea-level { color: #3b82f6; }
.data-ice { color: #06b6d4; }
.data-precipitation { color: #10b981; }

/* Специальные эффекты для важных моментов */
.highlight {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(59, 130, 246, 0.1); }
}

/* Стили для табов */
.tab-button {
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.tab-button.active::before {
    width: 100%;
}

/* Эффекты наведения */
.hover-lift:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Стили для индикаторов прогресса */
.progress-bar {
    background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
    height: 4px;
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* Дополнительная типографика */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Стили для мобильных устройств */
@media (max-width: 640px) {
    .mobile-hide {
        display: none;
    }
    
    .mobile-full {
        width: 100%;
    }
    
    .text-responsive {
        font-size: 0.875rem;
    }
}