/* noVNC-ARD: Custom styles (Layer 2+) */

/* Hide exclusive control row when not connected */
#noVNC_ard_exclusive_row.noVNC_hidden {
    display: none !important;
}

/* ── ARD theme: monochrome branding ─────────────── */
.noVNC_theme_ard {
    --novnc-blue: rgb(130, 130, 130);
    --novnc-darkblue: rgb(100, 100, 100);
}
.noVNC_theme_ard .noVNC_logo {
    color: rgb(214, 214, 214);
    text-shadow: 0.04em 0.04em 0 black;
}
.noVNC_theme_ard .noVNC_logo span {
    color: rgb(145, 145, 145);
}
/* Solid "o" replacing Orbitron's cut glyph */
.noVNC_logo_o {
    display: inline-block;
    position: relative;
    width: 0.58em;
    height: 0.62em;
    background: rgb(145, 145, 145);
    border-radius: 0.12em;
    vertical-align: baseline;
    margin-left: 0.05em;
    box-shadow: 0.04em 0.04em 0 black;
}
.noVNC_logo_o img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 69%;
    height: 69%;
}

/* Session Select Dialog — centered overlay, above transition screen (z-index 50) */
#noVNC_ard_session_dlg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}
#noVNC_ard_session_dlg.noVNC_open {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%);
}
.noVNC_session_info {
    margin: 1em 0;
    max-width: 290px;
}
#noVNC_ard_session_dlg .button_row {
    justify-content: flex-end;
    gap: 14px;
}
#noVNC_ard_session_dlg .button_row button {
    white-space: nowrap;
}

/* Remote User Avatar */
#noVNC_ard_user_avatar {
    padding: 4px;
    overflow: hidden;
}
#noVNC_ard_user_avatar_img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

/* ARD toolbar icon buttons (clipboard) */
.noVNC_icon_btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 0;
}
.noVNC_icon_btn svg {
    width: 24px;
    height: 24px;
    display: block;
}
.noVNC_icon_btn:disabled {
    opacity: 0.35;
    cursor: default;
}
#noVNC_clipboard_sync_button:not(.noVNC_selected):not(:disabled) {
    opacity: 0.4;
}
.noVNC_icon_btn:not(:disabled):hover {
    color: #fff;
    opacity: 1;
}

/* ARD curtain panel */
.noVNC_heading_icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 0.3em;
}
#noVNC_curtain_message {
    width: 100%;
    box-sizing: border-box;
}

/* Quality selector (ARD quality presets) */
#noVNC_quality_button.noVNC_hidden {
    display: none !important;
}
#noVNC_quality_panel {
    background-color: #313131;
    border: none;
    padding: 12px 10px;
}
#noVNC_quality_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.noVNC_quality_icon {
    width: 30px;
    height: 30px;
    opacity: 0.7;
}
#noVNC_quality_track {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    width: 36px;
    padding: 6px 0;
    position: relative;
    touch-action: none;
    user-select: none;
    cursor: pointer;
}
/* Vertical rail connecting the stops */
#noVNC_quality_track::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 2px;
    margin-left: -1px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}
/* Each stop — visual tick mark (pointer events pass through to track) */
.noVNC_quality_stop {
    width: 36px;
    height: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.noVNC_quality_stop::after {
    content: '';
    width: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 1px;
}
/* Active stop — pill-shaped indicator */
.noVNC_quality_stop.noVNC_active::after {
    width: 20px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Connection Info Panel */
#ard_info_panel {
    width: max-content;
    max-width: 350px;
    padding: 10px;
}

.ard_info_table {
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
    width: 100%;
}

.ard_info_table td {
    padding: 3px 6px;
    vertical-align: top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ard_info_table td:first-child {
    font-weight: bold;
    color: #888;
}
