/* ============================================================
   chatbox_radio_config.css — Pannello configurazione radio
   ============================================================ */

#radio-panel {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    z-index: 100;
    font-family: inherit;
    color: #ddd;
}

/* ── Header ─────────────────────────────────────────────────── */
.rcp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    padding: 10px 16px;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}
.rcp-title { font-size: 0.95em; font-weight: bold; color: #eee; }
.rcp-close { cursor: pointer; color: #888; font-size: 1.1em; padding: 2px 6px; border-radius: 4px; }
.rcp-close:hover { color: #fff; background: #333; }

/* ── Body ────────────────────────────────────────────────────── */
.rcp-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ── SX ─────────────────────────────────────────────────────── */
.rcp-left {
    width: 300px;
    flex-shrink: 0;
    border-right: 1px solid #2a2a2a;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.rcp-left::-webkit-scrollbar { display: none; }

/* ── Status box ──────────────────────────────────────────────── */
.rcp-status-box {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.rcp-status-label { font-size: 0.82em; color: #888; }
.rcp-status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #555;
    flex-shrink: 0;
}
.rcp-status-dot.on  { background: #4ecb82; box-shadow: 0 0 6px #4ecb82; }
.rcp-status-dot.off { background: #555; }

.rcp-url {
    font-size: 0.72em;
    color: #2B87F2;
    cursor: pointer;
    word-break: break-all;
}
.rcp-url:hover { text-decoration: underline; }

/* ── Form ────────────────────────────────────────────────────── */
.rcp-form-title {
    font-size: 0.82em;
    font-weight: bold;
    color: #aaa;
}
.rcp-field { display: flex; flex-direction: column; gap: 4px; }
.rcp-label {
    font-size: 0.72em;
    color: #888;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.rcp-input {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    color: #ddd;
    font-size: 0.85em;
    padding: 7px 10px;
    outline: none;
    font-family: inherit;
}
.rcp-input:focus { border-color: #2B87F2; }

.rcp-colors {
    display: flex;
    gap: 10px;
    align-items: center;
}
.rcp-color-field { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rcp-color-input {
    width: 100%;
    height: 34px;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    cursor: pointer;
    background: none;
    padding: 2px;
}

.rcp-separator { border-top: 1px solid #2a2a2a; }

/* ── Bottoni ─────────────────────────────────────────────────── */
.rcp-btn {
    background: #333;
    border: none;
    border-radius: 5px;
    color: #ccc;
    font-size: 0.82em;
    padding: 8px 14px;
    cursor: pointer;
    flex: 1;
}
.rcp-btn:hover          { background: #444; }
.rcp-btn-primary        { background: #2B87F2; color: #fff; }
.rcp-btn-primary:hover  { background: #1a76e0; }
.rcp-btn-success        { background: #2d8a42; color: #fff; }
.rcp-btn-success:hover  { background: #38a852; }
.rcp-btn-danger         { background: #c0392b; color: #fff; }
.rcp-btn-danger:hover   { background: #a93226; }

.rcp-btns { display: flex; gap: 8px; }

/* ── DX: stats ───────────────────────────────────────────────── */
.rcp-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
    gap: 12px;
}

.rcp-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.rcp-stat-card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}
.rcp-stat-val  { font-size: 1.8em; font-weight: bold; color: #4ecb82; }
.rcp-stat-lbl  { font-size: 0.72em; color: #666; margin-top: 2px; }

.rcp-top-title { font-size: 0.82em; font-weight: bold; color: #aaa; }
.rcp-top-list  { flex: 1; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.rcp-top-list::-webkit-scrollbar { display: none; }
.rcp-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid #222;
    font-size: 0.82em;
}
.rcp-top-row:hover { background: #1e1e1e; }
.rcp-top-name  { flex: 1; color: #ccc; }
.rcp-top-plays { color: #4ecb82; font-weight: bold; }
.rcp-empty     { color: #555; text-align: center; padding: 20px; font-size: 0.85em; }

/* ── Days filter ─────────────────────────────────────────────── */
.rcp-days {
    display: flex;
    gap: 6px;
}
.rcp-day-btn {
    background: #2a2a2a;
    border: none;
    border-radius: 4px;
    color: #888;
    font-size: 0.75em;
    padding: 4px 10px;
    cursor: pointer;
}
.rcp-day-btn.active { background: #2B87F2; color: #fff; }

/* ── Footer ──────────────────────────────────────────────────── */
.rcp-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111;
    padding: 8px 16px;
    border-top: 1px solid #2a2a2a;
    flex-shrink: 0;
}
