/* ============================================================================
   Sapyyn — Design System Theme Layer (v2)
   Loads AFTER bootstrap + style.css to establish a cohesive, premium look.
   Calm healthcare-SaaS aesthetic: deep navy chrome, one confident indigo brand
   color, restrained semantic accents, real type, and soft depth.
   ============================================================================ */

:root {
    /* Neutrals */
    --sp-bg:        #f4f5f8;
    --sp-surface:   #ffffff;
    --sp-surface-2: #fafbfc;
    --sp-border:    #e5e8ef;
    --sp-border-2:  #eef1f6;

    /* Ink */
    --sp-ink-900: #0e1626;
    --sp-ink-800: #1c2637;
    --sp-ink-700: #384253;
    --sp-ink-500: #667085;
    --sp-ink-400: #8a93a4;

    /* Brand — deep, muted indigo-blue (not neon) */
    --sp-brand:      #2544a8;
    --sp-brand-600:  #2544a8;
    --sp-brand-700:  #1d3688;
    --sp-brand-800:  #182d70;
    --sp-brand-050:  #eef2fc;
    --sp-brand-100:  #dde5f8;

    /* Chrome — navy */
    --sp-navy:   #0c1830;
    --sp-navy-2: #132a52;

    /* Accent — teal for small highlights */
    --sp-accent: #0e7c86;

    /* Semantic (muted, cohesive) */
    --sp-success: #0f766e;
    --sp-success-050: #e7f4f1;
    --sp-info:    #0b6aa2;
    --sp-info-050: #e6f1f8;
    --sp-warning: #b45318;
    --sp-warning-050: #fbf0e7;
    --sp-danger:  #be3b30;
    --sp-danger-050: #fbeceb;

    /* Elevation */
    --sp-shadow-xs: 0 1px 2px rgba(16,24,40,.05);
    --sp-shadow-sm: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
    --sp-shadow-md: 0 6px 16px -6px rgba(16,24,40,.14), 0 2px 6px -2px rgba(16,24,40,.08);
    --sp-shadow-lg: 0 18px 40px -12px rgba(16,24,40,.22);

    --sp-radius: 12px;
    --sp-radius-lg: 16px;

    /* Type */
    --sp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sp-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

    /* Map Bootstrap's own theming vars where it reads them */
    --bs-primary: #2544a8;
    --bs-primary-rgb: 37, 68, 168;
    --bs-link-color: #2544a8;
    --bs-link-hover-color: #1d3688;
    --bs-body-color: #384253;
    --bs-body-bg: #f4f5f8;
    --bs-border-color: #e5e8ef;
}

/* ---- Base ---------------------------------------------------------------- */
body {
    font-family: var(--sp-font-body);
    color: var(--sp-ink-700);
    background-color: var(--sp-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5,
.navbar-brand, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--sp-font-display);
    color: var(--sp-ink-900);
    letter-spacing: 0;
    font-weight: 700;
}
.display-1,.display-2,.display-3,.display-4,.display-5,.display-6 { font-weight: 800; letter-spacing: 0; }
.text-muted { color: var(--sp-ink-500) !important; }
a { color: var(--sp-brand); }
a:hover { color: var(--sp-brand-700); }
code { color: var(--sp-brand-700); background: var(--sp-brand-050); padding: .1em .4em; border-radius: 6px; }

/* ---- Color utilities (recolor Bootstrap's bright defaults) --------------- */
.bg-primary { background-color: var(--sp-brand) !important; }
.text-primary { color: var(--sp-brand) !important; }
.bg-success { background-color: var(--sp-success) !important; }
.text-success { color: var(--sp-success) !important; }
.bg-info { background-color: var(--sp-info) !important; }
.text-info { color: var(--sp-info) !important; }
.bg-warning { background-color: var(--sp-warning) !important; color: #fff !important; }
.text-warning { color: var(--sp-warning) !important; }
.bg-danger { background-color: var(--sp-danger) !important; }
.text-danger { color: var(--sp-danger) !important; }
.bg-secondary { background-color: #5b6675 !important; }
.bg-light { background-color: var(--sp-surface-2) !important; }
.bg-dark { background-color: var(--sp-navy) !important; }

/* ---- Navbar — premium navy chrome --------------------------------------- */
.navbar.bg-primary {
    background: linear-gradient(100deg, var(--sp-navy) 0%, var(--sp-navy-2) 100%) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.04), var(--sp-shadow-sm);
    padding-top: .6rem;
    padding-bottom: .6rem;
}
.navbar-brand { font-weight: 800; color: #fff !important; }
.sp-navbar-logo {
    display: block;
    width: 132px;
    height: auto;
}
.sp-auth-logo {
    display: block;
    width: 136px;
    height: auto;
    margin: 0 auto;
}
.navbar-dark .navbar-nav .nav-link { color: rgba(255,255,255,.78); font-weight: 500; border-radius: 8px; transition: color .15s, background .15s; }
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus { color: #fff; background: rgba(255,255,255,.06); }
.navbar .dropdown-menu {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow-md);
    padding: .4rem;
}
.navbar .dropdown-item { border-radius: 8px; padding: .5rem .7rem; font-weight: 500; }
.navbar .dropdown-item:hover { background: var(--sp-brand-050); color: var(--sp-brand-700); }
.navbar .btn-light { background: #fff; color: var(--sp-navy); font-weight: 600; border: none; }
.navbar .btn-light:hover { background: #eef2fc; color: var(--sp-brand-700); }
.navbar .btn-outline-light { border-color: rgba(255,255,255,.4); font-weight: 600; }

/* ---- Cards -------------------------------------------------------------- */
.card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-lg);
    box-shadow: var(--sp-shadow-sm);
}
.card-header {
    background: var(--sp-surface);
    border-bottom: 1px solid var(--sp-border-2);
    font-weight: 600;
    color: var(--sp-ink-800);
    padding: 1rem 1.25rem;
}
.card-body { padding: 1.25rem; }
.shadow-sm { box-shadow: var(--sp-shadow-sm) !important; }
.shadow { box-shadow: var(--sp-shadow-md) !important; }

/* Metric tiles (dashboard stat cards use .card.bg-* .text-white) */
.card.text-white { border: none; position: relative; overflow: hidden; }
.card.bg-primary { background: linear-gradient(135deg, #2a4bb5, #1d3688) !important; }
.card.bg-success { background: linear-gradient(135deg, #128577, #0d5f5a) !important; }
.card.bg-info    { background: linear-gradient(135deg, #147bb0, #0b5c8c) !important; }
.card.bg-warning { background: linear-gradient(135deg, #c05f1f, #97400f) !important; }
.card.text-white .card-body { padding: 1.35rem 1.25rem; }
.card.text-white h4 { color: #fff; font-family: var(--sp-font-display); }
.card.text-white .opacity-75 { opacity: .35 !important; }

/* Subtle hover lift for linked/interactive cards */
.card.shadow-sm:hover { box-shadow: var(--sp-shadow-md); transition: box-shadow .2s ease; }

/* ---- Buttons ------------------------------------------------------------ */
.btn { font-weight: 600; border-radius: 10px; padding: .5rem 1rem; letter-spacing: 0;
       transition: transform .12s ease, box-shadow .2s ease, background .15s, border-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .7rem 1.4rem; border-radius: 12px; }
.btn-sm { border-radius: 8px; }

.btn-primary { background: var(--sp-brand); border-color: var(--sp-brand); box-shadow: var(--sp-shadow-xs); }
.btn-primary:hover, .btn-primary:focus { background: var(--sp-brand-700); border-color: var(--sp-brand-700); box-shadow: var(--sp-shadow-sm); }
.btn-outline-primary { color: var(--sp-brand); border-color: var(--sp-brand-100); background: #fff; }
.btn-outline-primary:hover { background: var(--sp-brand); border-color: var(--sp-brand); color: #fff; }
.btn-success { background: var(--sp-success); border-color: var(--sp-success); }
.btn-success:hover { background: #0c5f58; border-color: #0c5f58; }
.btn-outline-secondary { color: var(--sp-ink-700); border-color: var(--sp-border); background: #fff; }
.btn-outline-secondary:hover { background: var(--sp-surface-2); color: var(--sp-ink-900); border-color: var(--sp-ink-400); }
.btn-light { background: var(--sp-surface); border: 1px solid var(--sp-border); color: var(--sp-ink-800); }
.btn-check:checked + .btn-outline-primary { background: var(--sp-brand); border-color: var(--sp-brand); color: #fff; }

/* ---- Badges ------------------------------------------------------------- */
.badge { font-weight: 600; letter-spacing: .01em; padding: .38em .7em; border-radius: 7px; }
.badge.bg-warning { color: #fff !important; }
.badge.bg-light { background: var(--sp-brand-050) !important; color: var(--sp-brand-700) !important; }

/* ---- Tables ------------------------------------------------------------- */
.table { color: var(--sp-ink-700); }
.table > thead { --bs-table-bg: var(--sp-surface-2); }
.table > thead th { color: var(--sp-ink-500); font-weight: 600; font-size: .82rem;
    text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--sp-border); }
.table-light, .table > :not(caption) > * > * { border-color: var(--sp-border-2); }
.table-hover > tbody > tr:hover > * { background-color: var(--sp-brand-050); }
.table td, .table th { padding: .85rem 1rem; }

/* ---- Forms -------------------------------------------------------------- */
.form-control, .form-select {
    border-color: var(--sp-border);
    border-radius: 10px;
    padding: .55rem .8rem;
    color: var(--sp-ink-800);
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--sp-brand);
    box-shadow: 0 0 0 3px rgba(37,68,168,.14);
}
.form-label { font-weight: 600; color: var(--sp-ink-800); margin-bottom: .35rem; }
.input-group-text { background: var(--sp-surface-2); border-color: var(--sp-border); color: var(--sp-ink-500); border-radius: 10px; }

/* ---- Feedback / misc ---------------------------------------------------- */
.alert { border: 1px solid transparent; border-radius: var(--sp-radius); font-weight: 500; }
.alert-info { background: var(--sp-info-050); border-color: #cfe4f1; color: #0a5482; }
.alert-success { background: var(--sp-success-050); border-color: #c9e7e1; color: #0b5f58; }
.alert-warning { background: var(--sp-warning-050); border-color: #f0dcc9; color: #8f430f; }
.alert-danger { background: var(--sp-danger-050); border-color: #f2d2cf; color: #9a2c23; }

.progress { background: var(--sp-border-2); border-radius: 999px; }
.progress-bar { border-radius: 999px; }

.list-group-item { border-color: var(--sp-border-2); }
.list-group-flush > .list-group-item { padding-left: 1.25rem; padding-right: 1.25rem; }

.breadcrumb { --bs-breadcrumb-divider-color: var(--sp-ink-400); font-size: .9rem; }
.breadcrumb-item a { text-decoration: none; }

/* Provider network */
.provider-code-card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    background: var(--sp-surface-2);
    padding: 1rem;
}
.provider-code-text {
    font-family: var(--sp-font-display);
    letter-spacing: .12em;
}
.provider-avatar,
.network-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: var(--sp-brand-050);
    color: var(--sp-brand);
}
.network-check {
    width: 2rem;
    height: 2rem;
    color: var(--sp-success);
    background: var(--sp-success-050);
}
.network-table .btn-group form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Portal sidebar */
.portal-shell {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.portal-shell-content > .container,
.portal-shell-content > .container-fluid {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
.portal-shell-content > .container.py-4,
.portal-shell-content > .container-fluid.py-4 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.portal-sidebar-card {
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding: 1rem;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-lg);
    box-shadow: var(--sp-shadow-sm);
}
.portal-sidebar-header {
    padding: .2rem .25rem .85rem;
    border-bottom: 1px solid var(--sp-border-2);
}
.portal-sidebar-kicker,
.portal-sidebar-label {
    color: var(--sp-ink-500);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.portal-sidebar-title {
    color: var(--sp-ink-900);
    font-family: var(--sp-font-display);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: .2rem;
}
.portal-sidebar-user {
    color: var(--sp-ink-500);
    font-size: .85rem;
    margin-top: .25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-sidebar-section {
    display: grid;
    gap: .35rem;
}
.portal-sidebar-label {
    padding: 0 .25rem;
}
.portal-sidebar-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 2.35rem;
    padding: .55rem .65rem;
    color: var(--sp-ink-700);
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 650;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.portal-sidebar-link i {
    color: var(--sp-ink-500);
    font-size: 1rem;
    width: 1.1rem;
    text-align: center;
}
.portal-sidebar-link:hover,
.portal-sidebar-link:focus {
    background: var(--sp-brand-050);
    border-color: var(--sp-brand-100);
    color: var(--sp-brand-700);
}
.portal-sidebar-link:hover i,
.portal-sidebar-link:focus i,
.portal-sidebar-link.active i {
    color: var(--sp-brand);
}
.portal-sidebar-link.active {
    background: var(--sp-brand-050);
    border-color: var(--sp-brand-100);
    color: var(--sp-brand-700);
    box-shadow: inset 3px 0 0 var(--sp-brand);
}
.portal-sidebar-badge {
    margin-left: auto;
    min-width: 1.25rem;
    padding: .15rem .4rem;
    background: var(--sp-danger);
    color: #fff;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 991.98px) {
    .portal-shell {
        padding-top: 1rem;
    }
    .portal-sidebar-card {
        position: static;
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    .network-table .btn-group {
        display: grid;
        gap: .35rem;
    }
    .network-table .btn-group .btn,
    .network-table .btn-group form .btn {
        border-radius: 8px;
        width: 100%;
    }
}

/* Footer */
footer.bg-light { background: var(--sp-navy) !important; color: rgba(255,255,255,.7); margin-top: 4rem !important; }
footer.bg-light h5 { color: #fff; }
footer.bg-light .text-muted { color: rgba(255,255,255,.6) !important; }
footer.bg-light a { color: rgba(255,255,255,.75); }
footer.bg-light a:hover { color: #fff; }
footer.bg-light hr { border-color: rgba(255,255,255,.12); }

/* Section rhythm on the marketing/landing pages */
main.container-fluid > .container,
main.container-fluid > .container-fluid { padding-top: .5rem; }

/* ============================================================================
   Hero (landing) — dark gradient + product mockup
   ============================================================================ */
#hero.hero-v2 {
    background: radial-gradient(1200px 500px at 85% -10%, rgba(37,68,168,.55), transparent 60%),
                linear-gradient(160deg, #0b1730 0%, #14294f 55%, #1c357e 100%) !important;
    position: relative;
    overflow: hidden;
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}
#hero.hero-v2 .display-4 { color: #fff; line-height: 1.08; }
#hero.hero-v2 .lead { color: rgba(255,255,255,.82); }
#hero.hero-v2 .eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    color: #cdd8f2; font-weight: 600; font-size: .82rem; letter-spacing: .02em;
    padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
#hero.hero-v2 .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
#hero.hero-v2 .btn-link { color: #cdd8f2 !important; }

/* App mockup */
.hero-mock {
    background: var(--sp-surface);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
    overflow: hidden;
    text-align: left;
    transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
    transition: transform .4s ease;
}
.hero-mock:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.hero-mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--sp-surface-2); border-bottom: 1px solid var(--sp-border-2); }
.hero-mock__bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hero-mock__body { padding: 16px; }
.hero-mock__title { font-family: var(--sp-font-display); font-weight: 700; color: var(--sp-ink-900); font-size: .95rem; margin-bottom: 12px; }
.hero-mock__tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.hero-mock__tile { border-radius: 12px; padding: 12px; color: #fff; }
.hero-mock__tile .n { font-family: var(--sp-font-display); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.hero-mock__tile .l { font-size: .68rem; opacity: .85; margin-top: 3px; }
.hero-mock__row { display: flex; align-items: center; justify-content: space-between; padding: 9px 4px; border-top: 1px solid var(--sp-border-2); }
.hero-mock__row:first-of-type { border-top: none; }
.hero-mock__pt { font-weight: 600; color: var(--sp-ink-800); font-size: .82rem; }
.hero-mock__sub { color: var(--sp-ink-500); font-size: .72rem; }
.hero-mock__badge { font-size: .66rem; font-weight: 700; padding: .2em .6em; border-radius: 6px; }

@media (max-width: 991px) { .hero-mock { transform: none; margin-top: 2rem; } }

/* ============================================================================
   Empty states
   ============================================================================ */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state-icon {
    width: 68px; height: 68px; border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sp-brand-050); color: var(--sp-brand);
    font-size: 1.9rem; margin-bottom: 1rem;
}
.empty-state h5, .empty-state .h5 { color: var(--sp-ink-800); font-weight: 700; }
.empty-state p { color: var(--sp-ink-500); max-width: 420px; margin: .35rem auto 1.1rem; }

/* ============================================================================
   Dark mode
   ============================================================================ */
.theme-toggle {
    border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
    color: #fff; width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.theme-toggle:hover { background: rgba(255,255,255,.14); color: #fff; }
.theme-toggle .bi-sun-fill { display: none; }
[data-theme="dark"] .theme-toggle .bi-moon-stars-fill { display: none; }
[data-theme="dark"] .theme-toggle .bi-sun-fill { display: inline-block; }

[data-theme="dark"] {
    --sp-bg: #0a111f;
    --sp-surface: #131d30;
    --sp-surface-2: #0f1726;
    --sp-border: #253145;
    --sp-border-2: #1b2637;
    --sp-ink-900: #f2f5fb;
    --sp-ink-800: #e3e9f3;
    --sp-ink-700: #c2cbdb;
    --sp-ink-500: #8894a9;
    --sp-ink-400: #6a7488;
    --sp-brand-050: #17233f;
    --sp-brand-100: #1e2f52;
    --bs-body-bg: #0a111f;
    --bs-body-color: #c2cbdb;
    --bs-border-color: #253145;
}
[data-theme="dark"] body { background: var(--sp-bg); color: var(--sp-ink-700); }
[data-theme="dark"] .card { background: var(--sp-surface); border-color: var(--sp-border); }
[data-theme="dark"] .card-header { background: var(--sp-surface); color: var(--sp-ink-800); border-color: var(--sp-border-2); }
[data-theme="dark"] .bg-light { background: var(--sp-surface-2) !important; }
[data-theme="dark"] .bg-white { background: var(--sp-surface) !important; }
[data-theme="dark"] .text-muted { color: var(--sp-ink-500) !important; }
[data-theme="dark"] .text-dark { color: var(--sp-ink-800) !important; }
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select { background: var(--sp-surface-2); border-color: var(--sp-border); color: var(--sp-ink-800); }
[data-theme="dark"] .form-control::placeholder { color: var(--sp-ink-400); }
[data-theme="dark"] .input-group-text { background: var(--sp-surface-2); border-color: var(--sp-border); color: var(--sp-ink-500); }
[data-theme="dark"] .table { color: var(--sp-ink-700); }
[data-theme="dark"] .table > thead th { color: var(--sp-ink-500); border-color: var(--sp-border); }
[data-theme="dark"] .table > :not(caption) > * > * { border-color: var(--sp-border-2); background: transparent; }
[data-theme="dark"] .table > thead { --bs-table-bg: var(--sp-surface-2); }
[data-theme="dark"] .table-hover > tbody > tr:hover > * { background: rgba(37,68,168,.16); }
[data-theme="dark"] .list-group-item { background: var(--sp-surface); color: var(--sp-ink-700); border-color: var(--sp-border-2); }
[data-theme="dark"] .dropdown-menu { background: var(--sp-surface); border-color: var(--sp-border); }
[data-theme="dark"] .dropdown-item { color: var(--sp-ink-700); }
[data-theme="dark"] .dropdown-item:hover { background: rgba(37,68,168,.22); color: #fff; }
[data-theme="dark"] .dropdown-divider { border-color: var(--sp-border-2); }
[data-theme="dark"] .modal-content { background: var(--sp-surface); color: var(--sp-ink-700); }
[data-theme="dark"] code { background: var(--sp-surface-2); color: #a9bef0; }
[data-theme="dark"] .btn-outline-secondary { background: var(--sp-surface); color: var(--sp-ink-700); border-color: var(--sp-border); }
[data-theme="dark"] .btn-outline-secondary:hover { background: var(--sp-surface-2); color: var(--sp-ink-900); border-color: var(--sp-ink-400); }
[data-theme="dark"] .btn-light { background: var(--sp-surface-2); border-color: var(--sp-border); color: var(--sp-ink-800); }
[data-theme="dark"] .alert-info { background: rgba(11,106,162,.16); border-color: rgba(11,106,162,.32); color: #93c8e8; }
[data-theme="dark"] .alert-success { background: rgba(15,118,110,.16); border-color: rgba(15,118,110,.32); color: #7fd8cc; }
[data-theme="dark"] .alert-warning { background: rgba(180,83,24,.16); border-color: rgba(180,83,24,.32); color: #e6b088; }
[data-theme="dark"] .alert-danger { background: rgba(190,59,48,.16); border-color: rgba(190,59,48,.32); color: #eda69f; }
[data-theme="dark"] .progress { background: var(--sp-border-2); }
[data-theme="dark"] .empty-state-icon { background: var(--sp-brand-050); color: #8fa6e8; }
[data-theme="dark"] .breadcrumb-item.active { color: var(--sp-ink-500); }
[data-theme="dark"] .hero-mock { border-color: rgba(255,255,255,.08); }

/* Soft brand badge (eyebrows / chips) — works despite .bg-primary override */
.badge-soft { background: var(--sp-brand-050) !important; color: var(--sp-brand-700) !important; font-weight: 600; }
[data-theme="dark"] .badge-soft { background: var(--sp-brand-050) !important; color: #93a7ea !important; }

/* ---- Feedback widget (subtle, click-only) ------------------------------- */
#feedback-button { position: fixed; }
.sp-feedback-fab {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--sp-surface); color: var(--sp-ink-700);
    border: 1px solid var(--sp-border); border-radius: 999px;
    padding: .5rem .95rem; font-weight: 600; font-size: .85rem;
    box-shadow: var(--sp-shadow-md); cursor: pointer;
    transition: color .15s, border-color .15s, box-shadow .15s, transform .12s;
}
.sp-feedback-fab:hover { color: var(--sp-brand); border-color: var(--sp-brand-100); box-shadow: var(--sp-shadow-lg); transform: translateY(-1px); }
.sp-feedback-fab i { color: var(--sp-brand); font-size: .95rem; }
.sp-feedback-dismiss {
    position: absolute; top: -8px; right: -8px; width: 20px; height: 20px;
    padding: 0; border-radius: 50%; background: var(--sp-ink-700); color: #fff;
    border: 2px solid var(--sp-surface); font-size: 12px; line-height: 1;
    cursor: pointer; display: none;
}
#feedback-button:hover .sp-feedback-dismiss { display: block; }
@media (max-width: 575px) { .sp-feedback-fab span { display: none; } .sp-feedback-fab { padding: .55rem; } }
