/*
 * MedAxisHMIS brand override.
 *
 * theme.min.css is a prebuilt DashUI vendor bundle (no SCSS source in this
 * repo, cannot be recompiled). This file is loaded via a <link> tag AFTER
 * theme.min.css in layouts/app.blade.php, layouts/guest.blade.php and
 * tenants/register.blade.php, and wins the cascade by source order. It
 * re-themes the vendor "violet" (#624bff) to the marketing site's purple
 * (#6C5CE7) and swaps the body font from Inter to Plus Jakarta Sans.
 *
 * Only `primary`-keyed classes are touched. Semantic status colors
 * (success/warning/danger/info/secondary) are left alone on purpose --
 * they carry real meaning (paid/overdue/etc.) on badges throughout the app.
 */

:root {
    --dashui-body-font-family: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, sans-serif;
    --dashui-font-monospace: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    --dashui-primary: #6C5CE7;
    --dashui-primary-rgb: 108, 92, 231;
    --dashui-primary-bg-subtle: #F1EEFE;
    --dashui-primary-border-subtle: #DED8FB;
    --dashui-link-color: #5A4AD1;
    --dashui-link-hover-color: #4534B8;
    --dashui-input-focus-border: #B7ADF7;
}

body {
    font-family: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, sans-serif;
}

code, pre, kbd, .font-monospace, .jvm-tooltip {
    font-family: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* --dashui-primary-* vars above already cascade into .bg-primary-subtle,
   .border-primary and .nav-link.active -- only the classes below bake
   the old hex in literally and need explicit overrides. */

.btn-primary {
    --dashui-btn-color: #fff;
    --dashui-btn-bg: #6C5CE7;
    --dashui-btn-border-color: #6C5CE7;
    --dashui-btn-hover-color: #fff;
    --dashui-btn-hover-bg: #5A4AD1;
    --dashui-btn-hover-border-color: #5A4AD1;
    --dashui-btn-focus-shadow-rgb: 108, 92, 231;
    --dashui-btn-active-color: #fff;
    --dashui-btn-active-bg: #4534B8;
    --dashui-btn-active-border-color: #4534B8;
    --dashui-btn-disabled-color: #fff;
    --dashui-btn-disabled-bg: #6C5CE7;
    --dashui-btn-disabled-border-color: #6C5CE7;
}

.btn-outline-primary {
    --dashui-btn-color: #6C5CE7;
    --dashui-btn-border-color: #6C5CE7;
    --dashui-btn-hover-color: #fff;
    --dashui-btn-hover-bg: #6C5CE7;
    --dashui-btn-hover-border-color: #6C5CE7;
    --dashui-btn-focus-shadow-rgb: 108, 92, 231;
    --dashui-btn-active-color: #fff;
    --dashui-btn-active-bg: #6C5CE7;
    --dashui-btn-active-border-color: #6C5CE7;
    --dashui-btn-disabled-color: #6C5CE7;
    --dashui-btn-disabled-border-color: #6C5CE7;
}

.bg-primary {
    background-color: #6C5CE7 !important;
}

.text-primary {
    color: #6C5CE7 !important;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 .25rem rgba(108, 92, 231, .25);
}

.form-check-input:checked {
    background-color: #6C5CE7;
    border-color: #6C5CE7;
}

/* ---------- Theme switcher (visible in every theme) ---------- */
.theme-option {
    cursor: pointer;
    font-size: .85rem;
}

.theme-swatch {
    display: inline-flex;
}

.theme-swatch-dot {
    display: inline-block;
    width: .9rem;
    height: .9rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .15);
    margin-right: -.3rem;
}


/* Elements rendered only for a specific theme stay hidden elsewhere;
   the theme's own stylesheet turns them back on. */
.clinical-only,
.nav-panel-search,
.context-bar,
.breadcrumb-bar {
    display: none;
}

#themeSwitcher {
    min-width: 13rem;
}

#themeSwitcher .theme-option span {
    white-space: nowrap;
}
