/* ══════════════════════════════════════════════════════════════
   SVG/Image Viewer — Full-screen overlay with zoom, pan, nav
   Ported from C-Kernel-Engine docs, refactored to ES6 module
   ══════════════════════════════════════════════════════════════ */

/* ── Overlay styles ──────────────────────────────────────────── */
#svg-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 999999; }

#svg-overlay .toolbar {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 10px 20px;
    background: rgba(0,0,0,0.9);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000000;
    border-bottom: 1px solid #333;
}

#svg-overlay .toolbar .title { color: #ccc; font-size: 14px; }
#svg-overlay .toolbar .controls { display: flex; gap: 8px; align-items: center; }

#svg-overlay .toolbar button {
    background: #333; color: #ffb400; border: 1px solid #555;
    padding: 8px 14px; cursor: pointer; border-radius: 4px; font-size: 14px;
}

#svg-overlay .toolbar button:hover { background: #444; border-color: #ffb400; }
#svg-overlay .toolbar .close-btn { font-size: 20px; padding: 4px 12px; }
#svg-overlay .toolbar .zoom-display { color: #888; font-size: 12px; min-width: 45px; text-align: center; }
#svg-overlay .toolbar .separator { color: #444; }

#svg-overlay .image-container {
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; padding: 60px 20px 20px; cursor: grab;
}

#svg-overlay .image-container:active { cursor: grabbing; }
#svg-overlay .image-container img { max-width: 95%; max-height: 90vh; transform-origin: center center; }

#svg-overlay .nav-btn {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.7); color: #ffb400; border: 1px solid #555;
    font-size: 30px; padding: 20px 15px; cursor: pointer; z-index: 1000000;
    border-radius: 4px;
}

#svg-overlay .nav-btn:hover { background: rgba(255,180,0,0.2); border-color: #ffb400; }
#svg-overlay .nav-prev { left: 10px; }
#svg-overlay .nav-next { right: 10px; }

#svg-overlay .hint {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #666; font-size: 12px; background: rgba(0,0,0,0.8);
    padding: 8px 20px; border-radius: 20px;
}
