/* css/estudio.css */

.estudio-full-layout {
    position: absolute;
    inset: 0;
    display: flex;
    background: var(--bg-workspace);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.estudio-full-layout.active {
    opacity: 1;
    pointer-events: auto;
}

.estudio-sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.estudio-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.estudio-tab:hover {
    background: rgba(128, 128, 128, 0.05);
    color: var(--text-pure);
}

.estudio-tab.active {
    background: var(--accent-electric);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.estudio-main-area {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.estudio-view {
    display: none;
    animation: fadeIn 0.3s ease;
    height: 100%;
    flex-direction: column;
}

.estudio-view.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Visor 3D Clínico */
.model-3d-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.clinical-workspace {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    height: calc(100% - 100px);
}

.model-3d-container {
    flex-grow: 1;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 0; 
    background: rgba(0,0,0,0.05); 
}

.clinical-notes-panel {
    width: 320px;
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--glass-border);
}

[data-theme="hellokitty"] .clinical-notes-panel { background: rgba(255, 255, 255, 0.5); }

.notes-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-pure);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-title span.sync-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; }

.contextual-textarea {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-pure);
    font-size: 1.05rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    font-family: 'Outfit', sans-serif;
    padding-right: 5px;
}

.contextual-textarea::placeholder { color: var(--text-dim); opacity: 0.5; }

/* Lista de Modelos en Ajustes */
.settings-model-list { display: flex; flex-direction: column; gap: 8px; max-height: 250px; overflow-y: auto; margin-top: 15px; padding-right: 5px; }
.settings-model-item { display: flex; justify-content: space-between; align-items: center; background: rgba(128,128,128,0.1); padding: 10px 15px; border-radius: 12px; border: 1px solid var(--glass-border); }
.settings-model-item span { font-weight: 600; color: var(--text-pure); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.delete-model-btn { background: none; border: none; color: var(--error-color); cursor: pointer; font-size: 1.2rem; transition: 0.2s; }
.delete-model-btn:hover { transform: scale(1.2); }