/* ===================================================================
   DCT RDS — ajustes sobre o AdminLTE 3
   =================================================================== */
:root {
  --verde: #2BA51A;
  --verde-escuro: #1E7D12;
  --lcd-fundo: #1B1407;
  --lcd-texto: #FFB43C;
  --lcd-apagado: #4A3511;
}

body { font-family: "Source Sans Pro", -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------- Logo no topo do menu ---------- */
.main-sidebar .brand-link.marca-dct {
  display: flex; align-items: center; justify-content: center;
  height: 92px; padding: 12px 14px;
  background: #1D2227;
  border-bottom: 1px solid #4b545c;
}
.marca-dct .logo-cheia { max-width: 100%; max-height: 66px; width: auto; height: auto; }
.marca-dct .logo-mini  { display: none; width: 36px; height: 36px; }
.layout-fixed .main-sidebar .sidebar { height: calc(100% - 92px); }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .marca-dct .logo-cheia { display: none; }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .marca-dct .logo-mini  { display: block; }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .brand-link.marca-dct { padding: 12px 0; }

/* Verde da marca nos destaques */
.sidebar-dark-success .nav-sidebar > .nav-item > .nav-link.active { background-color: var(--verde); }
.btn-success { background-color: var(--verde); border-color: var(--verde); }
.btn-success:hover, .btn-success:focus { background-color: var(--verde-escuro); border-color: var(--verde-escuro); }
.card-success.card-outline { border-top-color: var(--verde); }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--verde); border-color: var(--verde); }

/* ---------- Display do rádio ---------- */
.lcd {
  font-family: "VT323", "Courier New", monospace;
  background: var(--lcd-fundo);
  color: var(--lcd-texto);
  border-radius: 6px;
  padding: 4px 12px;
  line-height: 1.15;
  white-space: pre;
  overflow-x: auto;
  text-shadow: 0 0 6px rgba(255, 180, 60, .45);
  box-shadow: inset 0 0 0 1px #000, inset 0 2px 8px rgba(0, 0, 0, .6);
}
.lcd-ps { font-size: 32px; letter-spacing: .12em; display: inline-block; min-width: 9.6ch; }
.lcd-rt { font-size: 22px; letter-spacing: .03em; }
.lcd-mini { font-size: 20px; padding: 1px 8px; letter-spacing: .1em; min-width: 0; }
.lcd-vazio { color: var(--lcd-apagado); text-shadow: none; }
.lcd-bloqueado { color: #FF6B5A; text-shadow: 0 0 6px rgba(255, 107, 90, .45); }

.codigo { font-family: SFMono-Regular, Consolas, monospace; font-size: 13px; background: #EEF2F5; padding: 2px 7px; border-radius: 4px; color: #212529; }

/* ---------- Programação: lista de frases ---------- */
.lista-textos { display: grid; gap: 12px; }
.linha-texto {
  border: 1px solid #dee2e6; border-radius: 8px; padding: 12px;
  background: #fff;
  display: grid; gap: 10px;
  grid-template-columns: 32px minmax(0, 1fr) 150px auto;
  align-items: start;
}
.linha-texto .numero {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e9ecef; color: #495057; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.linha-texto .restante { font-size: 13px; color: #6c757d; font-variant-numeric: tabular-nums; }
.linha-texto .restante.pouco { color: #c0392b; font-weight: 600; }
.linha-texto .lcd { margin-top: 6px; font-size: 20px; }
.linha-texto .botoes { display: flex; gap: 4px; }
.vazio-textos { border: 2px dashed #dee2e6; border-radius: 8px; padding: 28px; text-align: center; color: #6c757d; }

.dias { display: flex; gap: 4px; flex-wrap: wrap; }
.dia input { position: absolute; opacity: 0; pointer-events: none; }
.dia span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 38px;
  border: 1px solid #ced4da; border-radius: 6px;
  font-weight: 600; color: #6c757d; cursor: pointer; user-select: none; background: #fff;
}
.dia input:checked + span { background: var(--verde); border-color: var(--verde); color: #fff; }
.dia input:focus-visible + span { outline: 3px solid #8fd17f; outline-offset: 2px; }

/* ---------- Diversos ---------- */
.small-box .icon > i { font-size: 64px; top: 18px; }
.table td, .table th { vertical-align: middle; }
.no-ar-agora .lcd + .lcd { margin-top: 8px; }
.lista-no-ar { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.lista-no-ar li { display: flex; gap: 8px; align-items: center; }
.lista-no-ar .lcd { flex: 1; font-size: 18px; padding: 2px 8px; }
.lista-no-ar .tempo { min-width: 44px; text-align: right; font-size: 13px; color: #6c757d; }

/* ---------- Login / instalação ---------- */
.login-page { background: #1D2227; }
.login-box, .install-box { width: 100%; max-width: 400px; padding: 0 12px; }
.install-box { max-width: 640px; margin: 30px auto; }
.login-logo img, .install-logo img { max-width: 100%; height: auto; }
.login-logo, .install-logo { margin-bottom: 18px; text-align: center; }

@media (max-width: 767.98px) {
  .linha-texto { grid-template-columns: 32px minmax(0, 1fr); }
  .linha-texto .campo-duracao, .linha-texto .botoes { grid-column: 2; }
  .lcd-ps { font-size: 26px; }
}

/* ---------- Processador ---------- */
.proc-bloco { border: 1px solid #dee2e6; border-radius: 8px; padding: 14px; height: 100%; background: #fff; }
.proc-valor { min-width: 44px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.eq-mesa {
  display: flex; align-items: stretch; gap: 2px;
  background: linear-gradient(#20262b, #15191c);
  border-radius: 8px; padding: 12px 10px 10px;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5);
}
.eq-escala {
  display: flex; flex-direction: column; justify-content: space-between;
  color: #7d8a95; font-size: 11px; text-align: right;
  padding: 22px 6px 22px 0; min-width: 28px;
}
.eq-canal {
  flex: 1 0 30px; min-width: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
}
/* linha do zero */
.eq-canal::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: calc(22px + 80px); height: 1px;
  background: rgba(255, 255, 255, .12); pointer-events: none;
}
.eq-valor {
  font-family: "VT323", monospace; font-size: 17px; line-height: 16px;
  color: #6f7b85; min-height: 16px;
}
.eq-canal.mexido .eq-valor { color: var(--lcd-texto); text-shadow: 0 0 5px rgba(255, 180, 60, .5); }
.eq-freq { color: #9aa6b0; font-size: 10px; white-space: nowrap; }

.eq-fader {
  writing-mode: vertical-lr;
  direction: rtl;
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 160px; margin: 0;
  background: transparent; cursor: pointer;
}
.eq-fader:focus { outline: none; }
.eq-fader::-webkit-slider-runnable-track { width: 4px; background: #0b0d0f; border-radius: 2px; box-shadow: 0 0 0 1px #3a434b; }
.eq-fader::-moz-range-track { width: 4px; background: #0b0d0f; border-radius: 2px; box-shadow: 0 0 0 1px #3a434b; }
.eq-fader::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 11px; margin-left: -8px;
  border-radius: 2px;
  background: linear-gradient(#f2f4f5, #aab3ba);
  border: 1px solid #000;
  box-shadow: inset 0 -1px 0 #6c757d, 0 2px 3px rgba(0, 0, 0, .6);
}
.eq-fader::-moz-range-thumb {
  width: 20px; height: 11px; border-radius: 2px;
  background: linear-gradient(#f2f4f5, #aab3ba);
  border: 1px solid #000;
}
.eq-canal.mexido .eq-fader::-webkit-slider-thumb { background: linear-gradient(#b8f5a8, var(--verde)); }
.eq-canal.mexido .eq-fader::-moz-range-thumb { background: linear-gradient(#b8f5a8, var(--verde)); }
.eq-fader:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #8fd17f; }

@media (max-width: 767.98px) {
  .eq-canal { flex: 0 0 30px; }
  .eq-fader { height: 140px; }
  .eq-canal::before { top: calc(22px + 70px); }
}
