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

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Основные стили */
.content-section {
    animation: fadeIn 0.5s ease-in-out;
}

.plant-card {
    transition: all 0.3s ease;
}

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

.plant-card.selected {
    background-color: #f0f9ff;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Кнопки навигации */
.nav-btn {
    transition: all 0.2s ease;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn.active {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Карточки информации */
.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #fff;
    margin-bottom: 10px;
}

/* Измерительные панели */
.measurement-panel {
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.measurement-panel:hover {
    background: linear-gradient(45deg, #e5e7eb, #d1d5db);
    transform: translateY(-2px);
}

.measurement-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    display: block;
    margin-top: 8px;
}

/* Анимация для результатов эксперимента */
.experiment-result {
    animation: slideIn 0.6s ease-out;
}

/* Прогресс-бар для эксперимента */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: pulse 2s infinite;
}

/* Стили для графиков */
.chart-container {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Таблицы результатов */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.results-table th {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
}

.results-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.results-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.results-table tr:hover {
    background-color: #f3f4f6;
}

/* Протокол */
.protocol-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.protocol-header {
    text-align: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Кнопки действий */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.action-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.action-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.action-btn.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .plant-card {
        padding: 12px;
    }
    
    .measurement-panel {
        padding: 12px;
    }
    
    .measurement-value {
        font-size: 1.2rem;
    }
    
    .protocol-section {
        padding: 20px;
    }
    
    .results-table {
        font-size: 0.8rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 4px;
    }
}

/* Темная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .dark-mode .content-section {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .dark-mode .plant-card {
        background-color: #374151;
        border-color: #4b5563;
    }
    
    .dark-mode .measurement-panel {
        background: linear-gradient(45deg, #374151, #4b5563);
        color: #f9fafb;
    }
}

/* Печать */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .no-print,
    header,
    nav,
    footer,
    .action-btn {
        display: none !important;
    }
    
    .content-section:not(#protocol) {
        display: none !important;
    }
    
    .protocol-section {
        box-shadow: none;
        border: 1px solid #000;
        margin: 0;
        padding: 20px;
    }
    
    .results-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* Специальные эффекты */
.glow-effect {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    to { box-shadow: 0 0 30px rgba(59, 130, 246, 0.6); }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Иконки состояний */
.status-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-icon.success { background-color: #10b981; }
.status-icon.warning { background-color: #f59e0b; }
.status-icon.error { background-color: #ef4444; }
.status-icon.info { background-color: #3b82f6; }

/* Подсказки */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
}

/* Скелетон загрузки */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}