/* ==========================================================================
   KERÍTÉSKONFIGURÁTOR PRO - SKANDINÁV ÉPÍTÉSZETI DESIGN RENDSZER
   Letisztult, professzionális mérnöki arculat (Zero AI Slop)
   Tipográfia: IBM Plex Sans & IBM Plex Mono
   ========================================================================== */

@import url('../assets/fonts/fonts.css');

:root {
    /* 1. Építészeti Színpaletta */
    --bg-workspace: #f4f5f7;        /* Tiszta világos stúdió háttér */
    --bg-surface: #ffffff;          /* Fehér kártyák és panelek */
    --bg-subtle: #f8f9fa;           /* Enyhe szürke háttérkiemelés */
    --bg-input: #ffffff;            /* Beviteli mezők */
    --bg-active: #edf2f7;           /* Aktív elem háttér */

    --border-subtle: #e5e7eb;       /* Halvány elválasztó vonalak */
    --border-default: #d1d5db;      /* Standard keretek */
    --border-strong: #9ca3af;       /* Fókusz és aktív keretek */
    --border-focus: #111827;        /* Kijelölés */

    --text-primary: #111827;        /* Mély grafit főszöveg */
    --text-secondary: #4b5563;      /* Másodlagos leírások */
    --text-muted: #6b7280;          /* Diszkrét műszaki címkék */
    --text-inverse: #ffffff;

    /* Hangsúlyos színek - Mély építészeti grafit és meleg tónusok */
    --brand-primary: #111827;       /* Fekete / mély antracit */
    --brand-primary-hover: #1f2937;
    --brand-accent: #2563eb;        /* Diszkrét mérnöki kék (csak méretvonalaknál) */
    
    --success: #15803d;
    --warning: #b45309;
    --danger: #dc2626;

    /* 2. Szigorú Műszaki Lekerekítések (4px - 6px, nincsenek SaaS buborékok) */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* 3. Diszkrét Építészeti Árnyékok */
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* 4. Méretek */
    --header-height: 56px;
    --sidebar-left-w: 350px;
    --sidebar-right-w: 390px;

    /* 5. Betűtípusok */
    --font-main: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-workspace);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   FEJLÉC (CLEAN ARCHITECTURAL NAVBAR)
   ========================================================================== */
.app-header {
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 50;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-symbol {
    width: 32px;
    height: 32px;
    background: var(--brand-primary);
    color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
}

.brand-text h1 {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-text .subtitle {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Kerítés típus választó - Letisztult szegmentált kapcsoló */
.fence-type-tabs {
    display: flex;
    background: var(--bg-subtle);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    gap: 2px;
}

.fence-tab-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fence-tab-btn:hover {
    color: var(--text-primary);
}

.fence-tab-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-default);
}

.tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
    display: inline-block;
}

.fence-tab-btn.active .tab-dot {
    background: var(--brand-primary);
}

/* Fejléc jobb oldal: statisztika & export */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-subtle);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.64rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.stat-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-value.highlight {
    color: var(--brand-primary);
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--text-inverse);
    border: 1px solid var(--brand-primary);
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    box-shadow: var(--shadow-md);
}

.btn-primary svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ==========================================================================
   MUNKATERÜLET (SIDEBARS & VIEWPORT)
   ========================================================================== */
.app-workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.sidebar {
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 20;
    scrollbar-width: thin;
    scrollbar-color: var(--border-default) transparent;
}

.sidebar-left {
    width: var(--sidebar-left-w);
    border-right: 1px solid var(--border-subtle);
}

.sidebar-right {
    width: var(--sidebar-right-w);
    border-left: 1px solid var(--border-subtle);
}

.panel-section {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Form elemek */
.form-group {
    margin-bottom: 12px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.label-val {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
}

.select-control, .input-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    color: var(--text-primary);
    font-size: 0.82rem;
    transition: border-color 0.15s ease;
}

.select-control:focus, .input-control:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.range-slider {
    width: 100%;
    accent-color: var(--brand-primary);
    cursor: pointer;
    height: 4px;
    border-radius: 2px;
    background: var(--border-default);
}

/* Szegmentált kapcsolók */
.segmented-control {
    display: flex;
    background: var(--bg-subtle);
    padding: 2px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    gap: 2px;
}

.segmented-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 5px 8px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.segmented-btn:hover {
    color: var(--text-primary);
}

.segmented-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-default);
}

/* Szakaszok (Segments) kezelő lista */
.segment-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

/* Drag and Drop Átrendezés és Mozgatás Stílusok */
.segment-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
    user-select: none;
    cursor: default;
}

.segment-card.dragging {
    opacity: 0.35;
    background: #e2e8f0;
    border: 1px dashed var(--brand-primary);
}

.segment-card.drop-target-above {
    border-top: 2px solid var(--brand-primary);
    transform: translateY(-2px);
}

.segment-card.drop-target-below {
    border-bottom: 2px solid var(--brand-primary);
    transform: translateY(2px);
}

.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px 4px 2px;
    border-radius: var(--radius-xs);
    transition: color 0.15s ease;
}

.drag-handle:hover {
    color: var(--text-primary);
    background: var(--border-subtle);
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.segment-order-num {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-muted);
    min-width: 16px;
    text-align: center;
}

.segment-card:hover {
    border-color: var(--border-default);
}

.segment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.segment-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.segment-type-badge {
    font-size: 0.65rem;
    padding: 1px 5px;
    background: var(--border-subtle);
    color: var(--text-muted);
    border-radius: 2px;
    font-weight: 500;
}

.segment-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.segment-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.segment-width-input {
    width: 70px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 4px 6px;
    border-radius: var(--radius-xs);
    text-align: right;
}

.segment-width-input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.btn-icon-subtle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-icon-subtle:hover {
    color: var(--danger);
    background: #fee2e2;
}

.btn-icon-subtle.btn-move:hover {
    color: var(--text-primary);
    background: var(--bg-active);
}

.reorder-btns {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.btn-reorder {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.15s ease;
}

.btn-reorder:hover {
    color: var(--text-primary);
    background: var(--border-default);
}

.btn-reorder svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
}

/* Telek utcafront információs kártya */
.plot-info-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.plot-delta-badge {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 2px;
    display: inline-block;
}

.plot-delta-badge.match {
    background: #dcfce7;
    color: #166534;
}

.plot-delta-badge.diff {
    background: #fef3c7;
    color: #92400e;
}

/* BOM Kategória Elválasztó Sor */
.bom-category-row td {
    background: var(--bg-subtle);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 6px 10px;
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.btn-icon-subtle svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.add-segment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.btn-secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--border-strong);
}

.btn-secondary svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Színminták */
.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.color-swatch-item:hover {
    background: var(--bg-subtle);
    border-color: var(--border-subtle);
}

.color-swatch-item.active {
    background: var(--bg-subtle);
    border-color: var(--brand-primary);
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: var(--shadow-subtle);
}

.color-name {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.1;
    font-weight: 500;
}

/* ==========================================================================
   VIEWPORT & THREE.JS CANVAS
   ========================================================================== */
.viewport-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #edf0f4; /* Tiszta építészeti stúdió szürke */
}

#viewport-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#canvas-2d {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

/* Lebegő eszköztár a vásznon */
.floating-toolbar {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-default);
    padding: 3px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: var(--shadow-md);
    z-index: 30;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 500;
    border-radius: var(--radius-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.toolbar-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.toolbar-btn:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.toolbar-btn.active {
    background: var(--brand-primary);
    color: #ffffff;
    font-weight: 600;
}

.toolbar-divider {
    width: 1px;
    height: 18px;
    background: var(--border-default);
    margin: 0 2px;
}

.viewport-nav-hints {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-subtle);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    pointer-events: none;
    z-index: 30;
    font-family: var(--font-mono);
}

/* ==========================================================================
   TÉTELES ANYAGKIÍRÁS & ÁRAK (JOBB PANEL)
   ========================================================================== */
.bom-table-container {
    max-height: 270px;
    overflow-y: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    margin-bottom: 12px;
}

.bom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.74rem;
}

.bom-table th {
    background: var(--bg-subtle);
    padding: 7px 10px;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bom-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.bom-table tr:last-child td {
    border-bottom: none;
}

.bom-table td.num {
    text-align: right;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.bom-table td.price {
    text-align: right;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-summary-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.price-row.total {
    border-top: 1px solid var(--border-default);
    padding-top: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-row.total .price-val {
    color: var(--brand-primary);
    font-family: var(--font-mono);
}

/* Modális ablak a vágáslistához */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    width: 580px;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 18px;
    overflow-y: auto;
}

.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   TELEK ALAPRAJZ, 4 OLDAL & OLDALFÜLEK STÍLUSOK
   ========================================================================== */

/* Telek elrendezés gyorsválasztó */
.plot-layout-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.layout-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 6px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-secondary);
    text-align: center;
}

.layout-btn:hover {
    background: var(--bg-surface);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.layout-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.layout-btn.active small {
    color: rgba(255, 255, 255, 0.85);
}

.layout-icon {
    font-size: 0.95rem;
    line-height: 1;
    font-family: var(--font-mono);
    font-weight: 700;
}

.layout-text {
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.15;
}

.layout-text small {
    font-size: 0.58rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Telekhatár sorok */
.plot-sides-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.side-dim-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px;
    border-radius: var(--radius-xs);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: all 0.15s ease;
}

.side-dim-row.inactive {
    opacity: 0.5;
    background: transparent;
}

.side-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    flex: 1;
}

.side-check-label input[type="checkbox"] {
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.side-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.side-dim-input {
    width: 58px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 6px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xs);
    background: var(--bg-input);
    color: var(--text-primary);
    text-align: right;
}

.side-dim-input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.unit-tag {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Nyomvonal Telekhatár Fülek */
.side-tabs-container {
    display: flex;
    gap: 2px;
    background: var(--bg-subtle);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    margin-bottom: 10px;
}

.side-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 5px 3px;
    border-radius: var(--radius-xs);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    white-space: nowrap;
}

.side-tab-btn:hover {
    color: var(--text-primary);
}

.side-tab-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-subtle);
}

.side-tab-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

