/* STL 3D Viewer — Frontend Styles | Author: Masum Billah */

.stl-viewer-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #1a1a2e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
    touch-action: none;
}

/* Loading overlay */
.stl-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    z-index: 5;
    background: inherit;
    pointer-events: none;
    transition: opacity .4s;
}

.stl-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Three.js canvas fills the container */
.stl-viewer-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Controls hint bar at the bottom */
.stl-controls-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .55);
    color: #cbd5e0;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s;
}

.stl-controls-hint.hidden {
    opacity: 0;
}
