/* ================================================================
   GHETTO MANAGER - UNIFIED DESIGN SYSTEM
   Color Palette: Verde (#0f7), Arancio (#ff6b00), Giallo (#ffff00)
   ================================================================ */

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.5;
}

/* ================================
   Strutture: Dettaglio (UI layout)
   ================================ */

.sd-root {
    padding: 0;
    overflow: hidden;
}

.sd-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 14px;
    background: linear-gradient(180deg, rgba(18,18,18,0.98), rgba(18,18,18,0.92));
    border-bottom: 1px solid #222;
    backdrop-filter: blur(6px);
}

.sd-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sd-title__name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.sd-title__badge {
    display: inline-flex;
    align-items: center;
}

.sd-meta {
    margin-top: 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #b8b8b8;
}

.sd-desc {
    margin-top: 6px;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.35;
}

.sd-header__right {
    min-width: 260px;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.sd-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.sd-kpi {
    background: #121212;
    border: 1px solid #242424;
    border-radius: 10px;
    padding: 8px 10px;
}

.sd-kpi__label {
    font-size: 11px;
    color: #9a9a9a;
}

.sd-kpi__value {
    font-size: 15px;
    font-weight: 800;
    margin-top: 2px;
}

.sd-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sd-actions button {
    padding: 8px 10px;
    font-size: 12px;
}

.sd-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
}

/* Panoramica coltivazione (top row) */
.sd-toprow {
    padding: 0 14px 14px 14px;
    border-bottom: 1px solid #222;
    background: linear-gradient(180deg, rgba(18,18,18,0.92), rgba(12,12,12,0.88));
}

/* Independent scrolling */
.sd-main,
.sd-sidebar {
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.sd-section {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 12px;
}

.sd-section__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 10px;
}

.sd-section__actions {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    min-width: 0;
}

.sd-section__title {
    font-weight: 800;
    font-size: 14px;
}

.sd-section__subtitle {
    font-size: 12px;
    color: #9a9a9a;
    margin-top: 2px;
}

.sd-section__body {
    display: grid;
    gap: 10px;
}

.sd-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sd-empty {
    color: #9a9a9a;
    font-size: 12px;
    border: 1px dashed #2a2a2a;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.sd-legacy {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #101010;
}

.sd-legacy__title {
    font-size: 12px;
    color: #bdbdbd;
    font-weight: 800;
    margin-bottom: 8px;
}

.sd-panel {
    border: 1px solid #222;
    background: #141414;
    border-radius: 12px;
    overflow: hidden;
}

/* Panoramica: gestione equip ambiente (struttura) */
.sd-subblock {
    padding: 10px;
    border: 1px solid #232323;
    border-radius: 10px;
    background: #101010;
}

.sd-subblock__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.sd-subblock__title {
    font-weight: 800;
    font-size: 12px;
    color: #e6e6e6;
}

.sd-subblock__hint {
    font-size: 11px;
    color: #9a9a9a;
    margin-top: 2px;
}

.sd-subblock__kpi {
    font-size: 11px;
    color: #bdbdbd;
    white-space: nowrap;
}

.sd-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
}

.sd-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border: 1px solid #2a2a2a;
    background: #0c0c0c;
    border-radius: 999px;
    font-size: 11px;
    color: #ddd;
    max-width: 100%;
}

.sd-pill__meta {
    color: #9a9a9a;
    font-size: 10px;
}

.sd-mini-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 999px;
}

.sd-panel__summary {
    cursor: pointer;
    padding: 10px 12px;
    font-weight: 800;
    font-size: 13px;
    list-style: none;
}

.sd-panel__summary::-webkit-details-marker {
    display: none;
}

.sd-panel__summary::after {
    content: "▾";
    float: right;
    color: #9a9a9a;
}

.sd-panel[open] .sd-panel__summary::after {
    content: "▴";
}

.sd-panel__body {
    padding: 10px 12px 12px 12px;
    border-top: 1px solid #222;
    min-width: 0;
}

/* Dropdown (details) content: keep tables usable without clipping */
.sd-panel[open] .sd-panel__body {
    /* Internal scroll when the panel is open (keeps sidebar layout stable) */
    max-height: min(52vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.sd-panel__body .city-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.sd-panel__body .city-table th,
.sd-panel__body .city-table td {
    padding: 8px;
}

.sd-panel__body .city-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sd-events {
    display: grid;
    gap: 8px;
}

.sd-event {
    border: 1px solid #222;
    border-radius: 10px;
    padding: 8px 10px;
    background: #121212;
}

.sd-event__type {
    font-size: 11px;
    color: #9a9a9a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sd-event__text {
    font-size: 12px;
    margin-top: 4px;
    color: #e6e6e6;
    line-height: 1.35;
    white-space: pre-line;
}

@media (max-width: 1100px) {
    .sd-layout {
        grid-template-columns: 1fr;
    }
    .sd-main,
    .sd-sidebar {
        min-height: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
    .sd-grid {
        grid-template-columns: 1fr;
    }
    .sd-header {
        grid-template-columns: 1fr;
    }
    .sd-header__right {
        justify-items: start;
        min-width: 0;
    }
    .sd-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* === TOP BAR === */
#top-bar {
    height: 60px;
    background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    border-bottom: 2px solid #0f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.topbar__kpi {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.topbar__icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    opacity: 0.95;
}

.topbar__label {
    color: #bdbdbd;
}

.topbar__value {
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: none;
    color: currentColor;
}

#day-counter {
    color: #0f7;
    border-color: rgba(15, 255, 119, 0.35);
}

#money-counter {
    color: #ffff00;
    border-color: rgba(255, 255, 0, 0.35);
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar__menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.topbar__menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: rgba(0, 0, 0, 0.18);
    color: #e0e0e0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.topbar__menu-btn:hover {
    border-color: rgba(15, 255, 119, 0.35);
    transform: translateY(-1px);
}

.topbar__menu-btn:active {
    transform: translateY(0);
}

.topbar__menu-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 255, 119, 0.35);
}

.topbar__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
    padding: 8px;
    z-index: 50;
    transform-origin: top right;
    animation: topbarDropdownIn 140ms ease-out;
}

@keyframes topbarDropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.topbar__dropdown-item {
    width: 100%;
    text-align: left;
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.topbar__dropdown-item:hover {
    background: rgba(15, 255, 119, 0.10);
    border-color: rgba(15, 255, 119, 0.25);
}

.topbar__dropdown-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 255, 119, 0.25);
}

.topbar__dropdown-sep {
    height: 1px;
    margin: 8px 4px;
    background: rgba(255, 255, 255, 0.08);
}

/* Top bar: secondary action button (e.g. Classifica).
   NOTE: UI-only entry points can use this without affecting gameplay mechanics. */
.topbar__action-btn {
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: rgba(0, 0, 0, 0.18);
    color: #e0e0e0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.topbar__action-btn:hover {
    border-color: rgba(15, 255, 119, 0.35);
    transform: translateY(-1px);
}

.topbar__action-btn:active {
    transform: translateY(0);
}

.topbar__action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 255, 119, 0.35);
}

/* === MAIN LAYOUT === */
#main-container {
    display: flex;
    height: calc(100vh - 60px);
    gap: 1px;
    background-color: #0a0a0a;
}

#left-column {
    width: 20%;
    background-color: #1a1a1a;
    border-right: 1px solid #333;
    padding: 15px;
    /* Layout a colonna: niente scroll qui. Lo scroll è interno alle card (liste/pannelli). */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#center-column {
    width: 60%;
    background-color: #0f0f0f;
    padding: 15px;
    overflow-y: auto;
}

#right-column {
    width: 20%;
    background-color: #1a1a1a;
    border-left: 1px solid #333;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* === ACTION BAR === */
#action-bar {
    background: linear-gradient(180deg, #1a1a1a 0%, #161616 100%);
    padding: 12px;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
    border-radius: 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#action-bar button {
    flex: 1;
    min-width: 120px;
}

#right-action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#right-action-bar button {
    flex: 1;
}

#left-action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#left-action-bar button {
    flex: 1;
}

#left-action-bar button.is-active {
    border-color: #0f7;
    color: #0f7;
    box-shadow: 0 0 12px rgba(0, 255, 119, 0.2);
}

#left-content {
    flex: 1;
    min-height: 0; /* necessario per far funzionare overflow nei figli flex */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* === BUTTONS === */
button {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 2px solid #444;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: #222;
    border-color: #0f7;
    color: #0f7;
    box-shadow: 0 0 12px rgba(0, 255, 119, 0.2);
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #444;
    color: #777;
}

/* Button Color Variants */
button.primary {
    border-color: #0f7;
    color: #0f7;
}

button.primary:hover {
    background-color: #0f7;
    color: #000;
}

button.success {
    border-color: #0f7;
    color: #0f7;
}

button.success:hover {
    background-color: #0f7;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 119, 0.3);
}

button.warning {
    border-color: #ff6b00;
    color: #ff6b00;
}

button.warning:hover {
    background-color: #ff6b00;
    color: #000;
}

button.info {
    border-color: #ffff00;
    color: #ffff00;
}

button.info:hover {
    background-color: #ffff00;
    color: #000;
}

/* === CARD === */
.card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #0f7;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #0f7;
    padding-bottom: 10px;
}

.card h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #0f7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card h4 {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.card p {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 13px;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

/* ==============================
   CONSEGNA CLIENTE (UI)
   Scoped: affects only delivery card
   ============================== */

.delivery-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-head {
    padding: 12px;
    border: 1px solid #222;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.delivery-head__title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.delivery-head__name {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: #eaeaea;
}

.delivery-head__meta {
    margin-top: 10px;
}

.delivery-kpis {
    width: 100%;
}

.delivery-section .city-table {
    width: 100%;
    table-layout: fixed;
}

.delivery-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.delivery-actions button {
    padding: 10px 12px;
    font-size: 12px;
}

/* === CONTENT AREA === */
#content-area {
    padding: 0;
}

#right-content {
    flex: 1;
    overflow-y: auto;
    background-color: #161616;
    border-radius: 6px;
    padding: 0;
}

#right-content .card {
    margin-bottom: 15px;
}

#right-content .card p {
    margin-bottom: 10px;
    word-break: break-word;
}

#right-content .card button {
    width: 100%;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

#right-content .card hr {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #333;
}

/* === TABLES === */
.city-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

/* ================================
   CITTÀ (Hub) — visual refresh only
   ================================ */

.city-hub {
    background: #121212;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 14px;
}

.city-hub__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
    margin-bottom: 12px;
}

.city-hub__title {
    margin: 0;
}

.city-hub__subtitle {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #aaa;
    max-width: 70ch;
}

.city-hub__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 255, 119, 0.12);
    border: 1px solid rgba(15, 255, 119, 0.25);
    color: #bfffdc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.city-hub__section {
    padding: 12px;
    border: 1px solid #222;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.city-hub__section-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 10px;
}

.city-hub__section-title {
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0f7;
}

.city-hub__section-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #9a9a9a;
}

.city-hub__section-body {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid #222;
    background: #0f0f0f;
}

/* Scoped table refresh: does not change other uses of .city-table */
.city-hub__table {
    margin-top: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.city-hub__table th {
    background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
    border: none;
    border-bottom: 1px solid #222;
    padding: 12px;
}

.city-hub__table td {
    border: none;
    border-bottom: 1px solid #1f1f1f;
    padding: 12px;
    vertical-align: top;
}

.city-hub__table tr:hover td {
    background: rgba(15, 255, 119, 0.05);
}

.city-hub__table tr:last-child td {
    border-bottom: none;
}

/* Column sizing & alignment */
.city-hub__table th:last-child,
.city-hub__table td:last-child {
    width: 170px;
    text-align: right;
}

.city-hub__table td {
    white-space: normal;
    word-break: break-word;
}

/* Buttons inside the City table (scoped) */
.city-hub__table td button {
    width: auto;
    min-width: 92px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: rgba(0, 0, 0, 0.22);
    color: #e0e0e0;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
    white-space: normal;
    line-height: 1.15;
}

.city-hub__table td button:hover {
    border-color: rgba(15, 255, 119, 0.35);
    background: rgba(15, 255, 119, 0.08);
    transform: translateY(-1px);
}

.city-hub__table td button:active {
    transform: translateY(0);
}

.city-hub__table td button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 255, 119, 0.25);
}

.city-table th {
    background-color: #222;
    border: 1px solid #333;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #0f7;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.city-table td {
    border: 1px solid #333;
    padding: 12px;
    color: #ccc;
    font-size: 13px;
}

.city-table tr:hover {
    background-color: #1a1a1a;
}

.city-table input {
    width: 80px;
    background-color: #1a1a1a;
    color: #0f7;
    border: 1px solid #444;
    padding: 6px;
    border-radius: 4px;
    font-weight: 600;
}

.city-table input:focus {
    outline: none;
    border-color: #0f7;
    box-shadow: 0 0 8px rgba(0, 255, 119, 0.2);
}

/* === PROGRESS BARS === */
.stamina-bar,
.intox-bar {
    width: 100%;
    height: 20px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.stamina-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #0f7);
    transition: width 0.3s ease;
}

#stamina-fill {
    background: linear-gradient(90deg, #00ff00, #0f7);
    height: 100%;
}

.intox-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #ff6b00, #ffaa00);
}

#intox-fill {
    background: linear-gradient(90deg, #ff6b00, #ffaa00);
    height: 100%;
}

#ko-fill {
    background: linear-gradient(90deg, #ffff00, #ff6b00);
    height: 100%;
}













/* CARD PERSONAGGIO */
.character-card {
    display: flex;
    justify-content: space-between;
    background-color: #1e1e1e;
    border: 2px solid #444;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Comic Sans MS', cursive, sans-serif; /* effetto cartoon */
}

/* ==============================
   PERSONAGGIO (nuovo stile scoped)
   ============================== */

.char-hub {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.char-hub__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(10,10,10,0.95), rgba(5,5,5,0.8));
    border: 1px solid #2a2a2a;
    border-radius: 10px;
}

.char-hub__title {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.char-hub__subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #9a9a9a;
}

.char-hub__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.char-hub__tab {
    /* Inherit global button look, tweak sizing for tabs */
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 10px;
}

.char-hub__tab:hover {
    /* Match global button:hover (keep scoped specificity) */
    background-color: #222;
    border-color: #0f7;
    color: #0f7;
    box-shadow: 0 0 12px rgba(0, 255, 119, 0.2);
}

.char-hub__tab.is-active {
    background: linear-gradient(180deg, #13ff86, #00c96a);
    color: #000;
    border-color: rgba(0,0,0,0.4);
    font-weight: 700;
}

.char-hub__tab:focus-visible {
    outline: 2px solid rgba(0, 255, 119, 0.55);
    outline-offset: 2px;
}

.char-hub__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.char-hub__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.char-stat {
    background: #0b0b0b;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    padding: 12px;
}

.char-stat__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a9a9a;
    margin-bottom: 8px;
}

.char-stat__value {
    font-size: 26px;
    font-weight: 800;
}

.char-stat--money .char-stat__value { color: #0f7; }
.char-stat--level .char-stat__value { color: #ff6b00; }
.char-stat--pop .char-stat__value { color: #ffe600; }

.char-hub__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.char-panel {
    background: #0a0a0a;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    padding: 12px;
}

.char-panel--aside {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.char-panel--nested {
    background: #070707;
}

.char-panel--inventory {
    padding: 14px;
}

.char-progress {
    margin-bottom: 12px;
}

.char-progress:last-child {
    margin-bottom: 0;
}

.char-progress__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
}

.char-progress__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a9a9a;
}

.char-progress__value {
    font-size: 12px;
    color: #0f7;
    font-weight: 700;
}

.char-progress__value--warn {
    color: #ffaa00;
}

.char-progress__value--danger {
    color: #ff4444;
}

.char-progress__bar {
    width: 100%;
    height: 18px;
    background: #1f1f1f;
    border: 1px solid #2b2b2b;
    border-radius: 8px;
    overflow: hidden;
}

.char-progress__bar--thin {
    height: 14px;
}

.char-progress__fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.char-progress__fill--xp { background: linear-gradient(90deg, #00ff66, #0f7); }
.char-progress__fill--stamina { background: linear-gradient(90deg, #00ff66, #0f7); }
.char-progress__fill--intox { background: linear-gradient(90deg, #ff6b00, #ffaa00); }
.char-progress__fill--suspicion { background: linear-gradient(90deg, #ff4444, #ffcc00); }

.char-suspicion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.char-suspicion__text {
    font-size: 11px;
    color: #9a9a9a;
}

.char-suspicion.is-warning .char-suspicion__text {
    color: #ff9900;
    font-weight: 700;
}

.char-suspicion.is-critical .char-suspicion__text {
    color: #ff4444;
    font-weight: 800;
}

.char-suspicion.is-ok .char-suspicion__text {
    color: #9a9a9a;
}

.char-btn {
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #2f2f2f;
    font-size: 12px;
    font-weight: 700;
}

.char-btn--primary {
    background: linear-gradient(180deg, #13ff86, #00c96a);
    color: #000;
    border-color: rgba(0,0,0,0.35);
}

.char-btn--primary:hover {
    filter: brightness(1.05);
}

.char-btn--subtle {
    background: #111;
    color: #6ad5ff;
    border-color: rgba(106,213,255,0.55);
}

.char-btn--subtle:hover {
    background: #141414;
}

.char-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.char-section__title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0f7;
    margin: 0;
}

.char-muted {
    color: #e6e6e6;
    font-size: 12px;
}

.char-help {
    color: #8d8d8d;
    font-size: 11px;
    margin-top: 4px;
}

.char-kv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.char-kv {
    background: #0b0b0b;
    border: 1px solid #262626;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.char-kv__k {
    color: #9a9a9a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.char-kv__v {
    color: #0f7;
    font-weight: 800;
    font-size: 12px;
}

/* Equipaggiamento */
.char-equip {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 12px;
    align-items: stretch;
}

.char-equip__body {
    position: relative;
    width: 260px;
    height: 340px;
    border-radius: 14px;
    border: 1px solid #2b2b2b;
    background: radial-gradient(circle at top, #222 0%, #050505 70%);
    overflow: hidden;
}

.char-equip__head {
    position: absolute;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2a2a2a, #101010);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.char-equip__torso {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(180deg, #2a2a2a, #101010);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.char-equip__spine {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 70px;
    background: linear-gradient(180deg, #2a2a2a, #101010);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.char-equip__arms {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 10px;
    background: linear-gradient(90deg, #2a2a2a, #101010);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.char-equip__legs {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 70px;
    background: linear-gradient(180deg, #2a2a2a, #101010);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.equipment-slot {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #444;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 8px 20px rgba(0,0,0,0.35);
    transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
}

.equipment-slot:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.equipment-slot--filled {
    border-color: #0f7;
}

.equipment-slot--empty {
    border-color: #3a3a3a;
}

.equipment-slot__label {
    font-size: 14px;
    font-weight: 800;
    color: #0f7;
}

.equipment-slot--empty .equipment-slot__label {
    color: #606060;
    font-weight: 600;
}

.char-equip__list {
    background: #0a0a0a;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    padding: 12px;
    max-height: 340px;
    overflow-y: auto;
}

.char-equip-list__title {
    font-size: 11px;
    color: #9a9a9a;
    margin-bottom: 10px;
}

.char-equip-list__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #1b1b1b;
    font-size: 11px;
}

.char-equip-list__k {
    color: #9a9a9a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.char-equip-list__v {
    color: #0f7;
}

/* Inventario */
.char-empty {
    padding: 24px;
    text-align: center;
    color: #8d8d8d;
    font-size: 12px;
}

.char-inv-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #0b0b0b;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.char-inv-item__main {
    flex: 1;
    min-width: 0;
}

.char-inv-item__name {
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.char-inv-item__meta {
    font-size: 11px;
    color: #9a9a9a;
}

.char-inv-item__desc {
    font-size: 10px;
    color: #7a7a7a;
    margin-top: 6px;
    font-style: italic;
}

/* Abilità */
.char-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    background: #0a0a0a;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
}

.char-hub__pill {
    /* Inherit global button look, tweak sizing for pills */
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 999px;
}

.char-hub__pill.is-active {
    background: linear-gradient(180deg, #13ff86, #00c96a);
    color: #000;
    border-color: rgba(0,0,0,0.35);
    font-weight: 800;
}

.char-hub__pill:focus-visible {
    outline: 2px solid rgba(0, 255, 119, 0.55);
    outline-offset: 2px;
}

.char-kpi__label {
    font-size: 11px;
    color: #9a9a9a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.char-kpi__value {
    font-size: 22px;
    color: #0f7;
    font-weight: 900;
}

.char-kpi__value--accent {
    color: #ffe600;
}

.char-kpi__meta {
    margin-top: 8px;
    font-size: 11px;
    color: #cfcfcf;
}

.char-skill {
    background: #0b0b0b;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.char-skill__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.char-skill__name {
    font-size: 13px;
    color: #fff;
    font-weight: 800;
    margin-bottom: 4px;
}

.char-skill__desc {
    font-size: 11px;
    color: #9a9a9a;
}

.char-skill__status {
    font-size: 11px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .char-hub__stats {
        grid-template-columns: 1fr;
    }

    .char-hub__grid {
        grid-template-columns: 1fr;
    }

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

    .char-equip {
        grid-template-columns: 1fr;
    }

    .char-equip__body {
        margin: 0 auto;
    }
}

/* LATO SINISTRO: Personaggio + slot equipaggiamento */
.character-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    gap: 10px;
}

/* Scheletro stilizzato del giocatore */
.character-avatar {
    width: 100%;
    height: 200px;
    background-color: #2c2c2c;
    border: 2px dashed #555;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
}

/* Slot equipaggiamento */
.equip-slot {
    width: 100%;
    height: 20px;
    background-color: #333;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.equip-slot:hover {
    border-color: #f1c40f;
    background-color: #3a3a3a;
}

/* LATO DESTRO: Inventario */
.character-right {
    display: grid;
    grid-template-columns: repeat(4, 50px); /* 4 slot per riga */
    grid-auto-rows: 50px; /* altezza uniforme */
    gap: 5px;
    width: 45%;
}

/* Slot inventario */
.inventory-slot {
    background-color: #2c2c2c;
    border: 2px solid #555;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.inventory-slot:hover {
    border-color: #f1c40f;
    background-color: #3a3a3a;
}

/* === SELECT INPUTS === */
select {
    background-color: #1a1a1a;
    color: #0f7;
    border: 1px solid #444;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    font-size: 13px;
}

select:focus {
    outline: none;
    border-color: #0f7;
    box-shadow: 0 0 8px rgba(0, 255, 119, 0.2);
}

select option {
    background-color: #1a1a1a;
    color: #0f7;
}

/* === LABELS === */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* === SEPARATORS === */
hr {
    border: none;
    border-top: 1px solid #333;
    margin: 15px 0;
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.text-muted {
    color: #888;
    font-size: 12px;
}

.text-primary {
    color: #0f7;
    font-weight: 600;
}

.text-warning {
    color: #ff6b00;
    font-weight: 600;
}

.text-info {
    color: #ffff00;
    font-weight: 600;
}

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }

.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }

/* === STRUCTURES PANEL === */
#structures-panel {
    /* Riempie l'area della colonna sinistra sotto i tab */
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#inventory-panel {
    /* Riempie l'area della colonna sinistra sotto i tab */
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* === INVENTORY PANEL (Left Column) === */
#inventory-panel.inventory-panel {
    padding: 14px;
    gap: 12px;
}

.inventory-panel__header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
}

.inventory-title {
    display: grid;
    gap: 4px;
}

.inventory-title__name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0f7;
}

.inventory-title__meta {
    font-size: 11px;
    color: #9a9a9a;
}

.inventory-panel__searchBlock {
    margin-top: 10px;
    display: grid;
    gap: 2px; /* richiesto: distanza 2px tra pulsante e barra di ricerca */
}

.inventory-panel__sidecardToggleRow {
    display: flex;
    justify-content: flex-end;
}

.inventory-panel__sidecardToggleRow.is-hidden {
    display: none;
}

button.inventory-sidecard-toggle {
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0.2px;
    text-transform: none;
}

.inventory-search {
    margin-top: 0;
}

.inventory-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0f0f0f;
    color: #e0e0e0;
    outline: none;
}

.inventory-search input:focus {
    border-color: #0f7;
    box-shadow: 0 0 0 2px rgba(15, 255, 119, 0.15);
}

/* === INVENTORY SIDE CARD (UI-only) === */
.inventory-sidecard {
    position: fixed;
    z-index: 50;
    padding: 14px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.inventory-sidecard.is-open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Read-only inventory table (sidecard) */
.inventory-table--readonly .inventory-head,
.inventory-table--readonly .inventory-row {
    grid-template-columns: 1fr auto;
}

.inventory-table--readonly .inventory-row__qty {
    text-align: right;
}

.inventory-panel__list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 10px;
    padding-top: 10px;
}

/* Avoid nested scrolling inside sd-panel for inventory categories */
#inventory-panel.inventory-panel .sd-panel[open] .sd-panel__body {
    max-height: none;
    overflow: visible;
}

.inventory-cat {
    border-radius: 12px;
}

.inventory-cat__summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.inventory-cat__title {
    font-weight: 800;
}

.inventory-cat__meta {
    font-size: 11px;
    color: #9a9a9a;
    white-space: nowrap;
}

.inventory-table {
    display: grid;
    gap: 0;
}

.inventory-head {
    display: grid;
    grid-template-columns: 1fr auto minmax(130px, 160px);
    gap: 10px;
    padding: 6px 0 10px 0;
    font-size: 11px;
    color: #9a9a9a;
    border-bottom: 1px solid #222;
}

.inventory-row {
    display: grid;
    grid-template-columns: 1fr auto minmax(130px, 160px);
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #1f1f1f;
    min-width: 0;
}

.inventory-row__name {
    min-width: 0;
}

.inventory-row__name-main {
    font-weight: 800;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-row__qty {
    font-weight: 800;
    color: #0f7;
    font-size: 12px;
    white-space: nowrap;
}

.inventory-row__actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.inventory-row__actions .inventory-move-qty {
    width: 56px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0f0f0f;
    color: #e0e0e0;
    outline: none;
    font-size: 12px;
    text-align: center;
}

.inventory-row__actions .inventory-move-qty:focus {
    border-color: #0f7;
    box-shadow: 0 0 0 2px rgba(15, 255, 119, 0.15);
}

.inventory-row__actions button.inventory-action--compact {
    width: auto;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.inventory-row__actions button {
    width: 100%;
    padding: 8px 10px;
    font-size: 11px;
}

.inventory-empty {
    text-align: center;
    color: #9a9a9a;
    font-size: 12px;
    border: 1px dashed #2a2a2a;
    border-radius: 10px;
    padding: 12px;
    background: #101010;
}

@media (max-width: 420px) {
    .inventory-head,
    .inventory-row {
        grid-template-columns: 1fr auto;
    }

    .inventory-head div:nth-child(3) {
        display: none;
    }

    .inventory-row__actions {
        grid-column: 1 / -1;
    }

    .inventory-row__actions button {
        width: 100%;
    }
}

#structures-panel h3 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

#structures-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Solo la lista è scrollabile */
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0; /* necessario in flex per far funzionare overflow */
    padding-bottom: 6px;
}

/* Footer fisso: bottone navigazione dettaglio strutture */
.structures-panel__footer {
    margin-top: auto;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(26,26,26,0.0), rgba(26,26,26,0.92) 30%, rgba(26,26,26,1.0));
    border-top: 1px solid #2a2a2a;
    box-shadow: 0 -10px 18px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.structures-panel__footer button {
    width: 100%;
}

/* Blocco fisso: base principale (navigazione rapida) */
.structures-base-block {
    background: linear-gradient(180deg, rgba(15, 255, 119, 0.08), rgba(0, 0, 0, 0.12));
    border: 1px solid #234;
    border-left: 4px solid #0f7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.structures-base-block__title {
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #0f7;
    margin-bottom: 10px;
}

.structures-base-block__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.structures-base-block__actions button {
    padding: 10px 12px;
    font-size: 12px;
}

.structure-item {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s ease;
}

.structure-item:hover {
    border-color: #0f7;
    box-shadow: 0 0 8px rgba(0, 255, 119, 0.1);
}

.structure-item-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.structure-item-status {
    margin: 8px 0;
    font-size: 11px;
    color: #aaa;
}

/* === LOGISTICA (mockup UI) === */
.lg-struct-list {
    display: grid;
    gap: 8px;
}

.lg-struct-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #222;
    border-radius: 10px;
    background: #101010;
}

.lg-struct-name {
    font-size: 12px;
    font-weight: 800;
    color: #e6e6e6;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lg-struct-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #bdbdbd;
    flex: 0 0 auto;
}

.lg-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid #222;
    background: #666;
}

.lg-status--active {
    background: #2ecc71;
}

.lg-status--stopped {
    background: #e74c3c;
}

.lg-status--idle {
    background: #7f8c8d;
}

.structure-item-progress {
    background: #333;
    width: 100%;
    height: 12px;
    border-radius: 3px;
    overflow: hidden;
    margin: 6px 0;
}

.structure-item-progress-fill {
    background: linear-gradient(90deg, #00ff00, #0f7);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.structure-item-days {
    font-size: 11px;
    color: #0f7;
    font-weight: bold;
}

.structure-item-ready {
    font-size: 12px;
    color: #0f7;
    font-weight: bold;
    margin: 8px 0;
}

.structure-item-ready::before {
    content: "✓ ";
    color: #0f7;
    margin-right: 4px;
}

.structure-item-inactive {
    font-size: 11px;
    color: #888;
    margin: 8px 0;
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #0f7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    #left-column {
        width: 15%;
    }
    
    #center-column {
        width: 65%;
    }
    
    #right-column {
        width: 20%;
    }
}

@media (max-width: 768px) {
    #main-container {
        flex-direction: column;
    }
    
    #left-column,
    #center-column,
    #right-column {
        width: 100%;
        border: none;
    }
    
    .city-table {
        font-size: 11px;
    }
    
    .city-table td,
    .city-table th {
        padding: 8px;
    }
}
