/* /Layout/MainLayout.razor.rz.scp.css */
/* ---------- Navbar ---------- */
.db-navbar[b-sfpmvrgbbx] {
    background-color: #0b1020;
    border-bottom: 2px solid #0d9488;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Brand */
.db-brand .db-logo[b-sfpmvrgbbx] {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.db-brand .db-tag[b-sfpmvrgbbx] {
    font-size: 0.78rem;
    color: #94a3b8;
}

/*
 * With data-bs-theme="dark" on the <nav>, Bootstrap already renders
 * nav-links white. These rules add hover polish and the active highlight.
 */
.db-navbar .nav-link[b-sfpmvrgbbx] {
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: 0.375rem;
    transition: background-color 0.15s;
}

.db-navbar .nav-link:hover[b-sfpmvrgbbx],
.db-navbar .nav-link:focus[b-sfpmvrgbbx] {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Blazor sets .active on the matched NavLink -- keep same dark blue */
.db-navbar .nav-link.active[b-sfpmvrgbbx] {
    color: #e2e8f0;
    font-weight: 600;
}

/* Dropdown panel
 * Bootstrap 5.3 injects --bs-dropdown-bg via data-bs-theme="dark" on
 * the parent <nav>. That CSS variable takes precedence over class-level
 * background-color even with !important. The only reliable fix is to
 * also override the variables on the element itself.
 */
.db-dropdown[b-sfpmvrgbbx] {
    /* Override Bootstrap 5.3 CSS custom properties so the dark-theme
       variable injection cannot win the cascade. */
    --bs-dropdown-bg:              #0b1020;
    --bs-dropdown-border-color:    #1e3a3a;
    --bs-dropdown-link-color:      #e2e8f0;
    --bs-dropdown-link-hover-bg:   rgba(255, 255, 255, 0.08);
    --bs-dropdown-link-active-bg:  rgba(255, 255, 255, 0.08);
    --bs-dropdown-link-active-color: #ffffff;
    --bs-dropdown-divider-bg:      #1e3a3a;
    background-color: #0b1020 !important;
    border: 1px solid #1e3a3a !important;
    border-radius: 0.5rem;
    min-width: 13rem;
    padding: 0.35rem 0;
}

.db-dropdown .dropdown-item[b-sfpmvrgbbx] {
    color: #e2e8f0;
    font-size: 0.88rem;
    padding: 0.45rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.12s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    display: block;
    cursor: pointer;
}

.db-dropdown .dropdown-item:hover[b-sfpmvrgbbx],
.db-dropdown .dropdown-item:focus[b-sfpmvrgbbx] {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.db-dropdown .dropdown-item.active[b-sfpmvrgbbx],
.db-dropdown .dropdown-item.active:hover[b-sfpmvrgbbx],
.db-dropdown .dropdown-item.active:focus[b-sfpmvrgbbx] {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.db-dropdown .dropdown-divider[b-sfpmvrgbbx] {
    border-color: #1e3a3a;
    margin: 0.25rem 0;
}

/* Sign out styled as a plain dropdown item (not a default Bootstrap button) */
.db-signout[b-sfpmvrgbbx] {
    text-decoration: none;
}

/* ---------- Page body ---------- */
.db-main[b-sfpmvrgbbx] {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background: #f7f8fb;
    color: #0b1020;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    min-height: calc(100vh - 130px);
}

/* ---------- Footer ---------- */
.db-footer[b-sfpmvrgbbx] {
    padding: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}
/* /Layout/TvLayout.razor.rz.scp.css */
.db-tv-shell[b-n30tb7mfak] {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
/* /Pages/Admin.razor.rz.scp.css */
/*
 * Two-column flex layout: tabs on the left fill available space, preview
 * panel on the right stays at a fixed width. Using flex rather than Bootstrap
 * col-md-* prevents the right panel from wrapping to a second row when the
 * host container does not resolve to a true 12-column grid context.
 */
.admin-layout[b-68nsgbok7g] {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

/* Left column: tabs + all tab panes */
.admin-tabs-col[b-68nsgbok7g] {
    flex: 1 1 0;
    min-width: 0; /* allows text/inputs to shrink without overflowing */
}

/* Right column: live preview panel -- fixed width, never shrinks */
.admin-preview-col[b-68nsgbok7g] {
    flex: 0 0 340px;
    width: 340px;
}

/* On very narrow viewports, stack the columns vertically */
@media (max-width: 767px) {
    .admin-layout[b-68nsgbok7g] {
        flex-direction: column;
    }
    .admin-preview-col[b-68nsgbok7g] {
        flex: 1 1 auto;
        width: 100%;
    }
}

/*
 * Sticky preview panel: stays in view while the user scrolls through
 * the settings tabs on the left. top offset accounts for the navbar height.
 */
.admin-preview-sticky[b-68nsgbok7g] {
    position: sticky;
    top: 4.5rem;
}

/*
 * Preview card mimics the TV display surface. Colors, font, and background
 * are applied via inline PreviewStyle so they update live as the user edits.
 */
.admin-preview-card[b-68nsgbok7g] {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Small "Preview" label shown above the card */
.admin-preview-label[b-68nsgbok7g] {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.4rem;
}


/* ===== User management tab ================================================ */

.user-table[b-68nsgbok7g] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.user-table th[b-68nsgbok7g],
.user-table td[b-68nsgbok7g] {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: middle;
}

.user-table th[b-68nsgbok7g] {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.user-actions[b-68nsgbok7g] {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
}

.role-badge[b-68nsgbok7g] {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-badge--admin[b-68nsgbok7g] { background: rgba(13, 148, 136, 0.2); color: #2dd4bf; }
.role-badge--pad[b-68nsgbok7g]   { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.user-form[b-68nsgbok7g] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
}

/* ===== Billing management tab ============================================= */

.billing-status-card[b-68nsgbok7g] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.billing-badge[b-68nsgbok7g] {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.billing-badge--active[b-68nsgbok7g]    { background: rgba(13, 148, 136, 0.2);  color: #2dd4bf; }
.billing-badge--trialing[b-68nsgbok7g]  { background: rgba(245, 158, 11, 0.2);   color: #fbbf24; }
.billing-badge--past_due[b-68nsgbok7g]  { background: rgba(239, 68, 68, 0.2);    color: #f87171; }
.billing-badge--canceled[b-68nsgbok7g],
.billing-badge--cancelled[b-68nsgbok7g] { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }

.billing-detail[b-68nsgbok7g] {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.btn-xs[b-68nsgbok7g] {
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.btn-teal[b-68nsgbok7g]         { background: #0d9488; color: #fff; border: none; }
.btn-teal:hover[b-68nsgbok7g]   { background: #0f766e; color: #fff; }
.btn-outline-teal[b-68nsgbok7g] { border: 1px solid #0d9488; color: #0d9488; background: transparent; }
.btn-outline-teal:hover[b-68nsgbok7g] { background: rgba(13, 148, 136, 0.1); }
