.vsim {
    background: #090f18;
    border: 1px solid #38516c;
    border-radius: 10px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.vsim-header {
    background: #172a40;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.vsim-brand {
    color: #ffc928;
    font-weight: bold;
    letter-spacing: 2px;
}

.vsim-demo {
    color: #b4c2d5;
    font-size: 11px;
}

.vsim-body {
    display: grid;
    grid-template-columns: 165px minmax(0,1fr);
}

.vsim-sidebar {
    background: #111e30;
    padding: 12px;
    border-right: 1px solid #38516c;
}

.vsim-sidebar h4 {
    color: #ffc928;
    font-size: 12px;
    margin: 5px 0 15px;
}

.vsim button {
    cursor: pointer;
    border: 1px solid #38516c;
    background: #142438;
    color: #f0f4fa;
    padding: 9px 12px;
    border-radius: 5px;
}

.vsim button:hover,
.vsim button.active {
    color: #ffc928;
    border-color: #ffc928;
}

.vsim button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.vsim-camera {
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
}

.vsim-online {
    color: #4ade80;
    font-size: 10px;
}

.vsim-main {
    min-width: 0;
    padding: 12px;
}

.vsim-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    background: black;
}

.vsim-grid.multi {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.vsim-screen {
    position: relative;
    background: #080b10;
    overflow: hidden;
    border: 1px solid #38516c;
}

.vsim-screen canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
}

.vsim-screen-label {
    position: absolute;
    left: 8px;
    top: 8px;
    color: white;
    background: rgba(0,0,0,.65);
    padding: 5px;
    font-size: 11px;
}

.vsim-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.vsim input[type="range"] {
    width: 100%;
    accent-color: #ffc928;
}

.vsim-time {
    display: flex;
    justify-content: space-between;
    color: #b4c2d5;
    font-size: 12px;
}

.vsim-clock {
    color: #ffc928;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.vsim-date {
    background: #142438;
    color: white;
    border: 1px solid #38516c;
    padding: 8px;
    border-radius: 5px;
    color-scheme: dark;
}

.vsim-status {
    padding: 10px;
    background: #142438;
    color: #b4c2d5;
    font-size: 12px;
    line-height: 1.5;
}

.vsim-highlight {
    outline: 2px solid #ffc928;
    outline-offset: 2px;
}

@media(max-width:650px) {
    .vsim-body {
        grid-template-columns: 1fr;
    }

    .vsim-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .vsim-sidebar h4 {
        grid-column: 1/-1;
    }

    .vsim-camera {
        margin: 0;
    }
}
/* ASAS private real-video pilot */

.vsim-real-pilot {
    background: #090f18;
    border: 1px solid #38516c;
    padding: 12px;
    border-radius: 8px;
}

.vsim-real-heading {
    color: #ffc928;
    font-weight: bold;
    font-size: 13px;
    padding: 8px 0 12px;
}

.vsim-real-screen {
    overflow: hidden;
    background: black;
    aspect-ratio: 16/9;
}

.vsim-real-screen video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
}

.vsim-real-status {
    color: #4ade80;
    padding: 10px 0;
    font-size: 13px;
}

.vsim-real-pilot small {
    color: #b4c2d5;
    font-size: 11px;
}

/* ASAS_ZOOM_PAN_V1 */

.vsim-real-screen {
    position: relative;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    overscroll-behavior: contain;
}

.vsim-real-screen video {
    pointer-events: none;
    transform-origin: center center;
    will-change: transform;
}

.vsim-zoom-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(0,0,0,.8);
    color: #ffc928;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
}

.vsim-pilot-seek {
    display: block;
    width: 100%;
    margin: 12px 0 4px;
    accent-color: #ffc928;
}

.vsim-pilot-clock {
    color: #ffc928;
    font-size: 13px;
    text-align: right;
    padding-bottom: 5px;
}
