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

.microscope-area {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 4px solid #4b5563;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cell-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid #60a5fa;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    cursor: crosshair;
}

.organelle-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.organelle-marker:hover {
    background-color: #fbbf24;
    transform: translate(-50%, -50%) scale(1.2);
}

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

.organelle-btn {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.organelle-btn:hover {
    background-color: #f3f4f6;
    border-left-color: #2563eb;
    transform: translateX(4px);
}

.organelle-btn.active {
    background-color: #eff6ff;
    border-left-color: #2563eb;
    color: #2563eb;
}

.magnification-ring {
    border: 2px solid #60a5fa;
    border-radius: 50%;
    position: absolute;
    pointer-events: none;
}

.zoom-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}

.protocol-section {
    border-top: 3px solid #2563eb;
}

.observation-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background-color: #f9fafb;
    margin-bottom: 12px;
}

.observation-card h5 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 8px;
}

.observation-card p {
    color: #6b7280;
    font-size: 14px;
}

/* Анимация для загрузки изображений */
.loading-spinner {
    border: 3px solid #f3f3f4;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для интерактивных элементов */
.interactive-cell {
    position: relative;
    display: inline-block;
    cursor: crosshair;
}

.interactive-cell img {
    transition: transform 0.3s ease;
}

.interactive-cell:hover img {
    transform: scale(1.05);
}

/* Модальное окно для деталей органоида */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .microscope-area {
        min-height: 300px;
    }
    
    .cell-image {
        max-width: 280px;
    }
    
    .organelle-marker {
        width: 10px;
        height: 10px;
    }
}

/* Печать */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background: white !important;
    }
    
    .bg-gradient-to-br {
        background: white !important;
    }
}