/* Стили для интерактивной микробиологической лаборатории */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

/* Анимации для интерактивных элементов */
.task-checkbox {
    transition: all 0.2s ease;
    transform: scale(1);
}

.task-checkbox:checked {
    transform: scale(1.1);
}

.observation-checkbox {
    transition: all 0.2s ease;
}

/* Стили для колоний в симуляции */
.colony {
    border-radius: 50%;
    transition: all 0.3s ease;
}

.colony:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Анимация для прогресс-бара */
.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Стили для модальных окон */
.modal-overlay {
    backdrop-filter: blur(4px);
}

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

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

/* Стили для этапов лаборатории */
.step-active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

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

.step-pending {
    background: #f3f4f6;
    color: #6b7280;
}

/* Анимация загрузки для симуляции роста колоний */
@keyframes grow {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.colony-growth {
    animation: grow 2s ease-out;
}

/* Стили для инструментов */
.lab-tool {
    transition: all 0.2s ease;
    cursor: pointer;
}

.lab-tool:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.lab-tool.selected {
    border: 3px solid #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Стили для чашек Петри */
.petri-dish {
    width: 100px;
    height: 100px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: radial-gradient(circle, #f9fafb 0%, #e5e7eb 100%);
    position: relative;
    margin: 10px;
    transition: all 0.3s ease;
}

.petri-dish:hover {
    border-color: #3b82f6;
    transform: scale(1.1);
}

.petri-dish.inoculated {
    background: radial-gradient(circle, #fef3c7 0%, #f59e0b 100%);
}

/* Колонии в чашке Петри */
.colony-white {
    background: #ffffff;
    border: 1px solid #d1d5db;
}

.colony-yellow {
    background: #fbbf24;
    border: 1px solid #f59e0b;
}

.colony-pink {
    background: #f472b6;
    border: 1px solid #ec4899;
}

.colony-blue {
    background: #60a5fa;
    border: 1px solid #3b82f6;
}

/* Стили для микроскопа */
.microscope-view {
    width: 200px;
    height: 200px;
    border: 4px solid #374151;
    border-radius: 50%;
    background: radial-gradient(circle, #111827 0%, #000000 70%);
    position: relative;
    overflow: hidden;
}

.bacteria {
    position: absolute;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.bacteria.lactobacilli {
    width: 8px;
    height: 20px;
    background: #7c3aed;
    border-radius: 4px;
}

.bacteria.streptococci {
    width: 6px;
    height: 6px;
    background: #dc2626;
}

.bacteria.yeasts {
    width: 12px;
    height: 16px;
    background: #f59e0b;
    border-radius: 6px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

/* Стили для инкубатора */
.incubator {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 8px;
    padding: 20px;
    color: white;
    position: relative;
}

.temperature-display {
    font-size: 2rem;
    font-weight: bold;
    color: #10b981;
    text-align: center;
}

.heating-indicator {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.5; transform: scale(1); }
}

/* Стили для стерилизатора */
.sterilization-flame {
    width: 20px;
    height: 30px;
    background: linear-gradient(0deg, #dc2626 0%, #f97316 50%, #fbbf24 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.05) rotate(2deg); }
}

/* Responsive дизайн */
@media (max-width: 768px) {
    .petri-dish {
        width: 60px;
        height: 60px;
    }
    
    .microscope-view {
        width: 150px;
        height: 150px;
    }
    
    .bacteria {
        transform: scale(0.8);
    }
}

/* Стили для протокола */
.protocol-section {
    page-break-inside: avoid;
    margin-bottom: 2rem;
}

@media print {
    body { font-size: 12pt; }
    .no-print { display: none; }
    .protocol-section { margin-bottom: 1rem; }
}

/* Дополнительные анимации */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #ef4444;
}

.notification.warning {
    background: #f59e0b;
}