/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
    min-height: 100vh;
    background:
        radial-gradient(900px 520px at 18% 12%, rgba(255, 203, 172, 0.65), rgba(255, 203, 172, 0) 60%),
        radial-gradient(900px 520px at 82% 14%, rgba(176, 218, 255, 0.65), rgba(176, 218, 255, 0) 62%),
        radial-gradient(1000px 640px at 54% 90%, rgba(255, 186, 214, 0.60), rgba(255, 186, 214, 0) 65%),
        linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}

noscript {
    display: block;
    text-align: center;
    padding-top: 100px;
    font-size: 20px;
}

.app-shell {
    height: 100vh;
    box-sizing: border-box;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 16px;
}

.panel-3d .panel-body {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.32) 100%);
}

.sweep-controls {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 24px));
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sweep-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sweep-label {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.70);
    white-space: nowrap;
}

.sweep-value {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.70);
    width: 44px;
    text-align: right;
}

.sweep-range {
    width: 100%;
}

.sweep-range {
    height: 34px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.sweep-range::-webkit-slider-runnable-track {
    height: 8px;
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
}

.sweep-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -6px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.96);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.sweep-range::-moz-range-track {
    height: 8px;
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
}

.sweep-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.96);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.draw-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.select {
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(15, 23, 42, 0.92);
    font-size: 13px;
}

.range {
    width: 140px;
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: rgba(15, 23, 42, 0.92);
}

.panel-status {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.60);
}

.panel-body {
    position: relative;
    flex: 1;
    min-height: 0;
}

.panel-actions {
    display: flex;
    gap: 10px;
    padding: 12px 14px 14px;
}

.btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(15, 23, 42, 0.92);
    font-size: 14px;
    cursor: pointer;
    transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-primary {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.92);
    color: #ffffff;
}

.btn-primary:hover {
    background: rgba(37, 99, 235, 1);
}

.v3d-container {
    position: absolute;
    inset: 0;
}

.draw-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
}

@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 520px;
    }
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 1;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }


.v3d-simple-preloader-logo {
    background-image: url('media/logo180.png');
}