/*
    TECHNICAL STUDIO PRO - EDITOR SPECIFIC STYLES
*/

.preview-canvas { position: relative; width: 100%; height: 100%; overflow: auto; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.toolbar-btn { padding: 0.5rem; border-radius: 0.25rem; color: var(--text-dim); transition: all 0.2s; cursor: pointer; }
.toolbar-btn:hover { background: rgba(255,255,255,0.05); }
.light-mode .toolbar-btn:hover { background: rgba(0,0,0,0.05); }
.toolbar-btn.active { color: var(--primary); background: rgba(192, 193, 255, 0.1); }
#text-editor { tab-size: 4; caret-color: var(--primary); font-variant-ligatures: none; line-height: 1.6; background: transparent; color: var(--text-main); border: none; }
.explorer-item-active { background: rgba(192, 193, 255, 0.15); border-left: 2px solid var(--primary) !important; }
.context-menu { position: fixed; background: var(--bg-surface); border: 1px solid var(--border-main); border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); padding: 5px 0; z-index: 9999; width: 220px; backdrop-filter: blur(20px); display: none; }
.context-menu-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; font-size: 11px; font-weight: 500; color: var(--text-main); cursor: pointer; transition: all 0.1s; }
.context-menu-item:hover { background: var(--primary); color: var(--on-primary); }
.context-separator { height: 1px; background: var(--border-main); margin: 4px 0; }
.mermaid { font-family: "Inter", sans-serif !important; }

.preset-card { 
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    background-color: rgba(45, 52, 73, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    color: var(--text-dim);
    transition: all 0.2s;
}
.preset-card:hover { 
    background-color: rgba(45, 52, 73, 0.5);
    color: var(--text-main);
}
.preset-card.active { 
    border-color: var(--primary);
    background-color: rgba(192, 193, 255, 0.1);
    color: var(--primary);
}
