/* ResourceGridDl5G/resourcegridDl5g.css */
/* 5G NR DL Resource Grid Simulator — local styles (rg5g- prefix) */

#rg5g-root {
    font-family: 'Courier New', Courier, monospace;
    background: #111111;
    color: #cccccc;
    padding: 10px;
    max-width: 780px;
    box-sizing: border-box;
}

/* ── Controls ─────────────────────────────────────────── */
.rg5g-controls {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.rg5g-ctrl-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 5px;
    font-size: 12px;
}

.rg5g-ctrl-row label {
    color: #aaaaaa;
    white-space: nowrap;
    min-width: 0;
}

.rg5g-ctrl-row select,
.rg5g-ctrl-row input[type="number"],
.rg5g-ctrl-row input[type="text"] {
    background: #222222;
    color: #eeeeee;
    border: 1px solid #444444;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 3px;
}

.rg5g-ctrl-row input[type="range"] {
    width: 110px;
    vertical-align: middle;
    accent-color: #3498db;
}

.rg5g-ctrl-row input[type="text"] {
    width: 400px;
}

.rg5g-ctrl-row input[type="checkbox"] {
    accent-color: #3498db;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.rg5g-val {
    color: #3498db;
    min-width: 28px;
    display: inline-block;
    text-align: right;
}

.rg5g-section-hdr {
    color: #888888;
    font-size: 11px;
    border-bottom: 1px solid #333333;
    padding-bottom: 2px;
    margin: 4px 0 4px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Stats bar ────────────────────────────────────────── */
#rg5g-stats {
    font-size: 11px;
    color: #aaaaaa;
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    padding: 5px 8px;
    margin-bottom: 6px;
    line-height: 1.7;
}

#rg5g-stats b {
    color: #00ccff;
}

/* ── Legend ───────────────────────────────────────────── */
.rg5g-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 6px;
    font-size: 11px;
}

.rg5g-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rg5g-swatch {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 2px;
    border: 1px solid #555555;
    flex-shrink: 0;
}

/* ── Tabs ─────────────────────────────────────────────── */
.rg5g-tab-bar {
    display: flex;
    gap: 3px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.rg5g-tab {
    background: #222222;
    color: #888888;
    border: 1px solid #333333;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    transition: background 0.15s, color 0.15s;
}

.rg5g-tab:hover {
    background: #2a2a2a;
    color: #cccccc;
}

.rg5g-tab.active {
    background: #1a1a1a;
    color: #00ccff;
    border-color: #444444;
}

/* ── Tab panels ───────────────────────────────────────── */
.rg5g-panel {
    border: 1px solid #444444;
    border-radius: 0 4px 4px 4px;
    background: #111111;
    padding: 6px;
    box-sizing: border-box;
}

.rg5g-panel canvas {
    display: block;
}

/* ── Detail RBs slider row ─────────────────────────────── */
.rg5g-detail-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #888888;
    margin-bottom: 4px;
}

.rg5g-detail-ctrl input[type="range"] {
    width: 100px;
    accent-color: #3498db;
}
