/* Microscope Specific Styles */
.microscope-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    background-color: #000; /* Fundo escuro imitando laboratório */
    color: #fff;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.microscope-toolbar {
    background-color: #1f2937;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #374151;
    z-index: 10;
}

.slide-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slide-selector label {
    font-weight: 500;
    color: #d1d5db;
}

.slide-selector select {
    background-color: #374151;
    color: white;
    border: 1px solid #4b5563;
    padding: 8px 12px;
    width: 300px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #374151;
    padding: 5px 15px;
    border-radius: 20px;
}

.btn-icon {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #38bdf8;
}

#zoom-level {
    font-weight: bold;
    width: 40px;
    text-align: center;
    font-family: var(--font-mono);
}

.microscope-viewport {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
    background-color: #0f1115; /* Cor de fundo se não houver imagem */
}

.microscope-viewport:active {
    cursor: grabbing;
}

.slide-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Imagem base inicial mockada via CSS no JS */
}

.hotspots-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Deixa o pan passar */
}

.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: rgba(2, 132, 199, 0.8);
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.2s, background-color 0.2s;
    z-index: 20;
}

.hotspot::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.hotspot:hover, .hotspot.active {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: var(--danger);
}

.pathology-info-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background-color: rgba(31, 41, 55, 0.95);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 30;
    display: none; /* Mostrado apenas quando um hotspot é clicado */
    animation: slideUp 0.3s ease;
}

.pathology-info-panel.visible {
    display: block;
}

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

.pathology-info-panel h4 {
    color: #38bdf8;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.pathology-info-panel p {
    font-size: 0.9rem;
    color: #e5e7eb;
    line-height: 1.5;
}
