/* Mix Broadcast Radio admin – (c) Anow Hosting
   Light mode only, red (#E11D2E) and dark red (#7A0B14). */
:root {
  --brand: #e11d2e;
  --brand-2: #7a0b14;
  --brand-soft: color-mix(in srgb, var(--brand) 14%, transparent);
  --red: #ff3b30;
  --green: #16c784;
  --amber: #ffa726;
  --purple: #8b5cf6;
  --info: #3b82f6;
}
[data-bs-theme="light"] {
  --bg: color-mix(in srgb, #f7f5f6 96%, var(--brand));
  --panel: #ffffff;
  --panel-2: #f3eff0;
  --input: #ffffff;
  --line: rgba(0,0,0,.08);
  --text: #1b1416;
  --muted: #6b5e62;
  --sidebar: rgba(255,255,255,.94);
  --topbar: rgba(255,255,255,.85);
  --nav: #4b3f43;
}
:root, [data-bs-theme] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-2);
}
body { background: radial-gradient(1100px 560px at 100% -10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%), radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--brand-2) 14%, transparent), transparent 60%), var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; min-height: 100vh; }
a { color: var(--brand); }
.text-secondary { color: var(--muted) !important; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex-shrink: 0; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 1040; backdrop-filter: blur(12px); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); padding: 6px 8px 20px; }
.brand img { border-radius: 12px; box-shadow: 0 6px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.15; letter-spacing: -.01em; }
.brand-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sidebar .nav-link { display: flex; align-items: center; gap: 12px; color: var(--nav); border-radius: 12px; padding: 10px 12px; margin-bottom: 2px; font-weight: 500; transition: .15s; }
.sidebar .nav-link i { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar .nav-link:hover { background: var(--brand-soft); color: var(--text); }
.sidebar .nav-link.active { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 30%, transparent); }
.sidebar-foot { margin-top: auto; padding-top: 16px; }
.support-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.25); border-radius: 14px; padding: 12px; }
.support-card i { font-size: 1.6rem; color: #25d366; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--topbar); backdrop-filter: blur(12px); z-index: 1030; }
.page-title { font-size: 1.45rem; margin: 0; font-weight: 800; letter-spacing: -.02em; }
.content { padding: 24px 28px; flex: 1; }
.footer { padding: 18px 28px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); }
.btn-icon { color: var(--text); font-size: 1.5rem; padding: 0 6px; }
.btn-theme { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.panel { padding: 20px; }
.panel-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.stat-card { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; height: 100%; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: .08; }
.stat-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); flex-shrink: 0; }
.stat-label { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.stat-sub { color: var(--muted); font-size: .8rem; }
.stat-cyan, .stat-brand { --c: var(--brand); } .stat-red { --c: var(--red); } .stat-green { --c: var(--green); } .stat-amber { --c: var(--amber); } .stat-purple { --c: var(--purple); } .stat-blue { --c: var(--info); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); --bs-table-hover-bg: var(--brand-soft); --bs-table-hover-color: var(--text); margin: 0; vertical-align: middle; }
.table thead th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; border-bottom-width: 1px; white-space: nowrap; }
.table td { border-color: var(--line); }
.table-wrap { overflow-x: auto; }
.form-control, .form-select { background-color: var(--input); border-color: var(--line); border-radius: 12px; color: var(--text); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem var(--brand-soft); background-color: var(--input); color: var(--text); }
.form-control-color { width: 56px; height: 42px; padding: 4px; }
.form-label { font-weight: 600; font-size: .86rem; }
.form-text { color: var(--muted); }
.btn { border-radius: 12px; font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: 0; color: #fff; }
.btn-primary:hover, .btn-primary:focus { filter: brightness(1.08); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-dark { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.btn-dark:hover { background: var(--brand-soft); border-color: var(--line); color: var(--text); }
.btn-success { background: var(--green); border: 0; color: #06140d; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-on { background: var(--green); } .dot-off { background: #6b7280; }
.live-card { background: linear-gradient(135deg, color-mix(in srgb, var(--red) 12%, transparent), color-mix(in srgb, var(--brand-2) 10%, transparent)); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); border-radius: 20px; padding: 18px; height: 100%; }
.live-card .title { font-weight: 700; font-size: 1.05rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--panel-2); color: var(--text); }
.chip-cyan, .chip-brand { background: var(--brand-soft); color: var(--brand); } .chip-red { background: rgba(255,59,48,.14); color: #ff5a4e; } .chip-green { background: rgba(22,199,132,.13); color: var(--green); } .chip-amber { background: rgba(255,167,38,.15); color: #e08a00; } .chip-purple { background: rgba(139,92,246,.15); color: #8b5cf6; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty i { font-size: 2.4rem; display: block; margin-bottom: 8px; opacity: .5; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 36px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.auth-card h1 { font-weight: 800; letter-spacing: -.02em; }
.nav-tabs { border-color: var(--line); }
.nav-tabs .nav-link { color: var(--muted); border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { background: transparent; color: var(--text); border-bottom-color: var(--brand); }
.form-switch .form-check-input { width: 2.6em; height: 1.35em; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
code { color: var(--brand); }
pre { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: .82rem; }
.modal-content { background: var(--panel); color: var(--text); }
.dropdown-menu { --bs-dropdown-bg: var(--panel); --bs-dropdown-link-color: var(--text); --bs-dropdown-link-hover-bg: var(--brand-soft); --bs-dropdown-border-color: var(--line); }
.swatch { width: 26px; height: 26px; border-radius: 8px; display: inline-block; border: 2px solid var(--line); cursor: pointer; }
.phone-preview { border-radius: 26px; padding: 18px; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-2) 65%, #000), var(--brand-2), var(--brand)); min-height: 150px; }
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1035; }
  .content, .topbar, .footer { padding-left: 16px; padding-right: 16px; }
}

/* Light admin theme: red & dark red */
.btn-primary { --bs-btn-bg: #E11D2E; --bs-btn-border-color: #E11D2E; --bs-btn-hover-bg: #7A0B14; --bs-btn-hover-border-color: #7A0B14; --bs-btn-active-bg: #7A0B14; --bs-btn-active-border-color: #7A0B14; --bs-btn-disabled-bg: #E11D2E; --bs-btn-disabled-border-color: #E11D2E; }
.form-check-input:checked { background-color: #E11D2E; border-color: #E11D2E; }
.form-control:focus, .form-select:focus { border-color: #E11D2E; box-shadow: 0 0 0 .2rem rgba(225,29,46,.15); }
.nav-tabs .nav-link.active { color: #7A0B14; border-bottom: 3px solid #E11D2E; }
.page-title { color: #7A0B14; }
.panel-title i { color: #E11D2E; }
.key-table td { vertical-align: middle; }
.key-table textarea { min-height: 38px; }
@media (max-width: 576px) { .content { padding: 12px !important; } .panel { padding: 14px !important; } .table { font-size: .85rem; } }
