/* ==========================================================================
   Flixora — admin console theme (charcoal sidebar, crimson accent, clean light workspace)
   Loaded after panel.css
   ========================================================================== */
:root {
    --accent: #7c3aed;
    --accent-600: #6d28d9;
    --accent-soft: #ede9fe;
    --ink: #14151a;
    --ink-2: #1f2128;
    --ink-3: #3a3d48;
    --line: #e8e9ee;
    --bg: #f4f5f8;
    --bs-link-color: #6d28d9;
    --bs-link-hover-color: #5b21b6;
}
body.panel { background: #f4f5f8; }

/* primary actions */
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--accent-600); --bs-btn-hover-border-color: var(--accent-600); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--accent-600); --bs-btn-active-border-color: var(--accent-600); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent); --bs-btn-disabled-color: #fff;
    --bs-btn-focus-shadow-rgb: 124, 58, 237; box-shadow: 0 6px 16px -8px rgba(124, 58, 237, .8); }
.form-control:focus, .form-select:focus { border-color: #a78bfa; box-shadow: 0 0 0 .22rem rgba(124, 58, 237, .18); }
.form-switch .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

/* brand + sidebar */
.brand .logo { background: var(--accent); color: #fff; transform: none; border-radius: 10px; }
.sidebar { background: linear-gradient(180deg, #0b0b0f 0%, #121218 100%); }
.sidebar .brand small { background: var(--accent); color: #fff; }
.side-link.active { background: linear-gradient(90deg, var(--accent), #b3070f); color: #fff; box-shadow: 0 10px 24px -14px var(--accent); }
.side-link.active .badge-count { background: #fff; color: var(--accent); }
.side-link .badge-count { background: var(--accent); }
.side-user .avatar { background: var(--accent); color: #fff; }
.avatar { background: var(--ink); color: #fff; }
.side-group { color: #666a7a; }

/* chips / bubbles use the accent for the "lime" variants */
.chip-lime { background: var(--accent-soft); color: #5b21b6; }
.icon-bubble { background: var(--accent-soft); color: #6d28d9; }
.icon-bubble.dark { background: var(--ink); color: #fff; }
.accordion-rx .accordion-button:not(.collapsed) { background: #fff6f6; }
.nav-pills-rx .nav-link.active { background: var(--ink); }
.pagination { --bs-pagination-active-bg: var(--accent); --bs-pagination-active-border-color: var(--accent); }
.demo-otp { background: var(--accent-soft); border-color: var(--accent); }

/* login screens (admin) */
.admin-login { background: radial-gradient(900px 500px at 80% -10%, rgba(124, 58, 237, .28), transparent 60%), linear-gradient(160deg, #08080b, #17171f); }
.admin-login .brand { color: var(--accent); }
.admin-login .brand .logo { background: var(--accent); }

/* admin-specific components */
.stat .num { font-size: 1.6rem; }
.poster-sm { width: 44px; height: 64px; border-radius: 6px; object-fit: cover; background: #ddd; flex-shrink: 0; }
.thumb-sm { width: 96px; height: 54px; border-radius: 6px; object-fit: cover; background: #ddd; flex-shrink: 0; }
.season-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 1rem; overflow: hidden; }
.season-card > .head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; background: #fafbfd; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ep-row { display: flex; align-items: center; gap: .9rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); }
.ep-row:last-child { border-bottom: 0; }
.ep-row .no { width: 32px; height: 32px; border-radius: 9px; background: #f0f1f5; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.bar-chart span { flex: 1; background: linear-gradient(180deg, var(--accent), #a78bfa); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bar-chart span:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #111; color: #fff; font-size: .68rem; padding: .15rem .45rem; border-radius: 4px; white-space: nowrap; z-index: 5; }
.meter { height: 8px; border-radius: 4px; background: #eceef3; overflow: hidden; }
.meter > div { height: 100%; background: var(--accent); border-radius: 4px; }
.status-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.status-tabs a { padding: .35rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.status-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.status-tabs a b { margin-left: .35rem; opacity: .7; font-weight: 700; }
.alert-item.warning { background: #fff8ec; }
@media (max-width: 991.98px) { .thumb-sm { width: 72px; height: 41px; } }
@media print { .sidebar, .topbar, .no-print { display: none !important; } .main-area { margin: 0; } }
