/* --- LAYOUT & CONTAINER --- */
.sidebar-right {
    background: #09090b;
    border-left: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0; /* Reset padding for full-width headers */
}

/* --- HEADER --- */
.right-header {
    height: 48px;
    border-bottom: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #09090b;
    flex-shrink: 0;
}

.header-left { display: flex; align-items: center; gap: 10px; color: #e4e4e7; }
.panel-icon { color: #52525b; font-size: 14px; }
.panel-title { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.btn-icon {
    background: transparent;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 12px;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
}
.btn-icon:hover { background: #27272a; color: #fff; }
.btn-icon.danger:hover { background: #450a0a; color: #f87171; }

/* --- SCROLL AREA --- */
.prop-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* --- EMPTY STATE --- */
.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #3f3f46;
    text-align: center;
    gap: 12px;
}
.empty-state i { font-size: 24px; opacity: 0.5; }
.empty-state span { font-size: 12px; font-weight: 500; line-height: 1.4; }

/* --- SECTIONS --- */
.prop-section { margin-bottom: 24px; }
.section-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #52525b;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
}

/* --- OBJECT INSPECTOR (TARGET/FIND) --- */
.inspector-viewport {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid #27272a;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.inspector-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

/* OVERLAYS */
.scan-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
}

.obj-bbox {
    position: absolute;
    border: 1px solid #00e054;
    background: rgba(0, 224, 84, 0.1);
    top: 30%; left: 40%; width: 20%; height: 30%; /* Mock Data */
    box-shadow: 0 0 10px rgba(0, 224, 84, 0.3);
    z-index: 3;
}
.obj-bbox::after {
    content: '98% MATCH';
    position: absolute;
    bottom: -18px; left: 0;
    background: #00e054;
    color: #000;
    font-size: 8px;
    padding: 2px 4px;
    font-weight: 700;
}

/* --- VIEW MODES (FILTERS) --- */
/* Biometric: Matrix Green Style */
.view-mode-biometric .inspector-img {
    filter: grayscale(100%) sepia(100%) hue-rotate(90deg) contrast(150%) brightness(0.9);
}
.view-mode-biometric .scan-overlay { opacity: 1; }
.view-mode-biometric .obj-bbox { border-color: #00ff00; box-shadow: 0 0 15px #00ff00; }

/* X-Ray: Inverted Blue Style */
.view-mode-xray .inspector-img {
    filter: invert(100%) hue-rotate(180deg) contrast(120%) saturate(80%);
}
.view-mode-xray .obj-bbox { border-color: #00ffff; background: rgba(0, 255, 255, 0.1); }

/* Heatmap (Mock): High Saturation/Contrast */
.view-mode-heat .inspector-img {
    filter: contrast(200%) saturate(300%) hue-rotate(-20deg);
}

/* --- FILTER CONTROLS --- */
.view-mode-selector {
    display: flex;
    gap: 4px;
    background: #18181b;
    padding: 4px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 10px;
    font-weight: 600;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.mode-btn:hover { color: #fff; }
.mode-btn.active { background: #27272a; color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }

/* --- FORM ELEMENTS --- */
.prop-row {
    margin-bottom: 12px;
}
.prop-row label {
    display: block;
    font-size: 11px;
    color: #a1a1aa;
    margin-bottom: 6px;
}

.prop-input, .prop-select {
    width: 100%;
    background: #18181b;
    border: 1px solid #27272a;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box; /* IMPORTANT */
}
.prop-input:focus, .prop-select:focus { border-color: #3b82f6; }

/* Sliders */
.range-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.prop-range {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #27272a;
    border-radius: 2px;
    outline: none;
}
.prop-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.range-val {
    font-family: monospace;
    font-size: 11px;
    color: #e4e4e7;
    width: 30px;
    text-align: right;
}

/* Coordinate Grid */
.coord-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.input-icon-group { position: relative; }
.input-icon-group i {
    position: absolute;
    left: 8px; top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #52525b;
}
.input-icon-group input { padding-left: 24px; }

/* --- SCROLLBAR STYLING --- */
.prop-content-scroll::-webkit-scrollbar {
    width: 10px;  /* Vertical width */
    background: #09090b;
}

.prop-content-scroll::-webkit-scrollbar-track {
    background: #09090b;
    border-left: 1px solid #1f1f22; /* Separator on the left side */
}

.prop-content-scroll::-webkit-scrollbar-thumb {
    background-color: #27272a; 
    border-radius: 5px; 
    border: 2px solid #09090b; /* Creates "padding" effect */
}

.prop-content-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #3f3f46; 
}