/**
 * Main site theme - CareNavi (#2e86ab → #13547a teal-blue, bg #edf6f9)
 * Apply to argon layout, admin, and header-nav pages for uniformity
 */

/* CRITICAL: Override Dashtreme app-style.css which sets form-control color:#fff (invisible text) */
/* Catch-all for non-glass theme dash/theme areas (glass theme has its own form rules) */
.theme-main-site input[type="text"],
.theme-main-site input[type="email"],
.theme-main-site input[type="password"],
.theme-main-site input[type="number"],
.theme-main-site input[type="search"],
.theme-main-site input[type="tel"],
.theme-main-site textarea,
.theme-main-site select,
.dash-template input[type="text"],
.dash-template input[type="email"],
.dash-template input[type="password"],
.dash-template input[type="number"],
.dash-template textarea,
.dash-template select,
.dash-template input[type="time"],
.dash-template input[type="file"],
#wrapper .content-wrapper .theme-main-site input.form-control,
#wrapper .content-wrapper .theme-main-site textarea.form-control,
#wrapper .content-wrapper .theme-main-site select.form-control,
#wrapper .content-wrapper .theme-main-site .form-control,
body .theme-main-site input.form-control,
body .theme-main-site textarea.form-control,
body .theme-main-site select.form-control,
body .content-wrapper .form-control,
body .content-wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
body .content-wrapper textarea,
body .content-wrapper select.form-control,
.theme-main-site input.form-control,
.theme-main-site textarea.form-control,
.theme-main-site select.form-control,
.dash-card input.form-control,
.dash-card textarea.form-control,
.dash-card select.form-control,
.dash-template input.form-control,
.dash-template textarea.form-control,
.dash-template select.form-control,
body .dash-template form input[type="text"],
body .dash-template form input[type="email"],
body .dash-template form input[type="password"],
body .dash-template form input[type="number"],
body .dash-template form textarea,
body .dash-template form select {
    color: #0f172a !important;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #0f172a !important;
}
#wrapper .content-wrapper .theme-main-site select.form-control option,
body .theme-main-site select.form-control option,
body .content-wrapper select.form-control option,
.dash-template select.form-control option {
    color: #0f172a !important;
    background-color: #ffffff !important;
}
#wrapper .content-wrapper .theme-main-site input::placeholder,
#wrapper .content-wrapper .theme-main-site textarea::placeholder,
.theme-main-site input.form-control::placeholder,
.theme-main-site textarea.form-control::placeholder,
body .content-wrapper input::placeholder,
body .content-wrapper textarea::placeholder,
body .dash-template input::placeholder,
body .dash-template textarea::placeholder,
.theme-main-site input::placeholder,
.theme-main-site textarea::placeholder,
.dash-template input::placeholder,
.dash-template textarea::placeholder {
    color: #475569 !important;
    opacity: 1 !important;
}
/* Ensure labels visible (glass theme has its own label color) */
.theme-main-site label,
.dash-template label,
.dash-card label {
    color: #1e293b !important;
}
#wrapper .content-wrapper .theme-main-site select.form-control option,
body.carenavi-dash select option,
.theme-main-site select option,
.dash-template select option {
    color: #0f172a !important;
    background-color: #ffffff !important;
}
/* Fix autofill and forced-colors - ensure typed text stays dark */
body .theme-main-site input:-webkit-autofill,
body .theme-main-site input:-webkit-autofill:hover,
body .theme-main-site input:-webkit-autofill:focus,
body .theme-main-site textarea:-webkit-autofill {
    -webkit-text-fill-color: #0f172a !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}
body.theme-main-site,
.theme-main-site body {
    background: #edf6f9 !important;
    font-family: 'Open Sans', system-ui, sans-serif !important;
}
.theme-main-site .absolute.w-full.bg-blue-500 {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
    min-height: 140px !important;
}
.theme-main-site aside,
.theme-main-site aside[sidenav],
body.theme-main-site aside {
    background: linear-gradient(180deg, #e8f4f8 0%, #d4eef0 100%) !important;
    box-shadow: 0 4px 15px rgba(19, 84, 122, 0.12) !important;
    border: 1px solid rgba(19, 84, 122, 0.15) !important;
    overflow-y: hidden !important;
}
.theme-main-site aside .h-sidenav {
    overflow: hidden !important;
    max-height: none !important;
}
.theme-main-site aside a {
    color: #2e86ab !important;
    text-decoration: none !important;
}
.theme-main-site aside .opacity-60,
.theme-main-site aside h6 {
    color: #2e86ab !important;
    opacity: 0.8 !important;
}
.theme-main-site aside ul li,
.theme-main-site aside ul li a {
    border-bottom: none !important;
}
/* Sidebar menu items as buttons - light theme, dark text for visibility */
.theme-main-site aside ul li a {
    display: flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, rgba(19, 84, 122, 0.12) 0%, rgba(128, 208, 199, 0.18) 100%) !important;
    border-radius: 10px !important;
    padding: 0.65rem 1rem !important;
    margin: 0.25rem 0.5rem !important;
    box-shadow: 0 1px 3px rgba(19, 84, 122, 0.15) !important;
    border: 1px solid rgba(19, 84, 122, 0.2) !important;
    transition: all 0.2s ease !important;
    color: #2e86ab !important;
}
.theme-main-site aside ul li a:hover {
    background: linear-gradient(135deg, rgba(19, 84, 122, 0.2) 0%, rgba(128, 208, 199, 0.25) 100%) !important;
    box-shadow: 0 2px 6px rgba(19, 84, 122, 0.2) !important;
    border-color: rgba(19, 84, 122, 0.35) !important;
    color: #13547a !important;
}
.theme-main-site aside ul li a.bg-blue-500\/13,
.theme-main-site aside .bg-blue-500\/13 {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
    color: #fff !important;
    border-color: rgba(19, 84, 122, 0.5) !important;
    box-shadow: 0 2px 8px rgba(19, 84, 122, 0.3) !important;
    font-weight: 600 !important;
}
.theme-main-site aside .bg-blue-500\/13 span,
.theme-main-site aside ul li a.bg-blue-500\/13 span {
    color: #fff !important;
}
.theme-main-site aside .bg-blue-500\/13 i,
.theme-main-site aside ul li a.bg-blue-500\/13 i {
    color: #fff !important;
}
.theme-main-site aside .text-blue-500,
.theme-main-site aside .text-emerald-500,
.theme-main-site aside .text-cyan-500,
.theme-main-site aside .text-orange-500 {
    color: #2e86ab !important;
}
.theme-main-site nav[navbar-main] {
    background: transparent !important;
    box-shadow: none !important;
}
/* Hamburger icon - dark green */
[sidenav-trigger] div i,
.theme-main-site [sidenav-trigger] div i {
    background-color: #0e3d5e !important;
}
/* Navbar "Menu" label - bigger, dark green */
.nav-page-title,
.theme-main-site nav[navbar-main] .nav-page-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #0e3d5e !important;
}
.theme-main-site nav[navbar-main] .text-white,
.theme-main-site nav[navbar-main] a {
    color: #fff !important;
}
.theme-main-site nav[navbar-main] .opacity-50 {
    opacity: 0.9 !important;
}
.theme-main-site .bg-white.shadow-xl,
.theme-main-site .dark\:bg-slate-850 {
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    border-radius: 12px !important;
}
.theme-main-site button[class*="bg-gradient"],
.theme-main-site a[class*="bg-gradient"],
.theme-main-site .bg-gradient-to-tl {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
}
.theme-main-site .text-blue-500,
.theme-main-site a[class*="text-blue-500"] {
    color: #2e86ab !important;
}
.theme-main-site .text-amber-600 {
    color: #2e86ab !important;
}
/* Standalone pages (header-nav, facility-detail, etc) - buttons & links */
body.theme-main-site .btn-primary,
body.theme-main-site .bg-primary {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
    border-color: transparent !important;
}
body.theme-main-site .btn-primary:hover {
    opacity: 0.95;
}
body.theme-main-site .text-primary,
body.theme-main-site a.text-primary {
    color: #2e86ab !important;
}
body.theme-main-site .breadcrumb-item.active {
    color: #2e86ab;
}
/* Ensure main content area uses theme background */
.theme-main-site main,
.theme-main-site main > div[class*="overflow-y-auto"] {
    background: #edf6f9 !important;
}
/* Navbar avatar: keep small */
.theme-main-site nav[navbar-main] img.rounded-full {
    max-width: 32px !important;
    max-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
}
/* Constrain header bar height */
.theme-main-site .absolute.w-full.bg-blue-500.min-h-75 {
    min-height: 140px !important;
    max-height: 140px !important;
}
/* Doctor search cards: constrain images to prevent oversized avatars */
.theme-main-site .relative.h-32 img[class*="object-cover"],
.theme-main-site .relative.h-32 > a > img {
    max-height: 128px !important;
    height: 128px !important;
    object-fit: cover !important;
}

/* Form labels - visible text */
.theme-main-site .form-label,
.theme-main-site label.form-label,
.theme-main-site .form-group label,
.theme-main-site label.small.font-weight-bold,
.theme-main-site label.small.fw-bold,
body.theme-main-site .form-label {
    color: #1e293b !important;
    font-weight: 600;
}
/* Form card max width */
.theme-main-site .max-w-form,
.theme-main-site .dash-card.max-w-form {
    max-width: 42rem;
}
/* Form fields: thicker borders, curvier, more shadow, glow on hover */
.theme-main-site input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.theme-main-site textarea,
.theme-main-site select,
.theme-main-site .form-control,
.theme-main-site .form-select,
input.form-control,
textarea.form-control,
select.form-control,
select.form-select {
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(19, 84, 122, 0.2) !important;
    border: 2.5px solid rgba(19, 84, 122, 0.25) !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.theme-main-site input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):hover,
.theme-main-site textarea:hover,
.theme-main-site select:hover,
.theme-main-site .form-control:hover,
.theme-main-site .form-select:hover,
input.form-control:hover,
textarea.form-control:hover,
select.form-control:hover,
select.form-select:hover {
    box-shadow: 0 6px 20px rgba(19, 84, 122, 0.22), 0 0 0 4px rgba(19, 84, 122, 0.12) !important;
    border-color: rgba(19, 84, 122, 0.45) !important;
}
.theme-main-site input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
.theme-main-site textarea:focus,
.theme-main-site select:focus,
.theme-main-site .form-control:focus,
.theme-main-site .form-select:focus {
    box-shadow: 0 6px 20px rgba(19, 84, 122, 0.25), 0 0 0 4px rgba(19, 84, 122, 0.2) !important;
    border-color: #2e86ab !important;
    outline: none !important;
}
.theme-main-site input::placeholder,
.theme-main-site textarea::placeholder,
.theme-main-site .form-control::placeholder {
    color: #4a6b7c !important;
    opacity: 1;
}
/* Input and textarea typed text - ensure visibility */
.theme-main-site input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.theme-main-site textarea,
.theme-main-site .form-control,
input.form-control,
textarea.form-control {
    color: #1e293b !important;
}
.theme-main-site .form-select,
select.form-control,
select.form-select {
    color: #1e293b !important;
}

/* Global form fields - for pages that load main-site-theme but may not have .theme-main-site */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
textarea,
select,
.form-control,
.form-select {
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(19, 84, 122, 0.2) !important;
    border: 2.5px solid rgba(19, 84, 122, 0.25) !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):hover,
textarea:hover,
select:hover,
.form-control:hover,
.form-select:hover {
    box-shadow: 0 6px 20px rgba(19, 84, 122, 0.22), 0 0 0 4px rgba(19, 84, 122, 0.12) !important;
    border-color: rgba(19, 84, 122, 0.45) !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 6px 20px rgba(19, 84, 122, 0.25), 0 0 0 4px rgba(19, 84, 122, 0.2) !important;
    border-color: #2e86ab !important;
    outline: none !important;
}
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: #4a6b7c !important;
    opacity: 1;
}
/* Input and textarea typed text - ensure visibility */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
textarea,
.form-control {
    color: #1e293b !important;
}
.form-select,
select.form-control,
select.form-select {
    color: #1e293b !important;
}

/* Buttons: CareNavi gradient, glow on hover, shadow, rounded edges */
.theme-main-site button:not([type="menu"]),
.theme-main-site .btn,
.theme-main-site input[type="submit"],
.theme-main-site input[type="button"],
.theme-main-site input[type="reset"],
button.btn,
.btn-primary,
.btn:not(.btn-outline):not(.btn-link),
input[type="submit"],
input[type="button"],
input[type="reset"],
a.btn:not(.btn-outline):not(.btn-link) {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
    color: #fff !important;
    border: 2px solid rgba(19, 84, 122, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(19, 84, 122, 0.2) !important;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1), opacity 0.2s ease !important;
}
.theme-main-site button *,
.theme-main-site .btn *,
.btn-primary *,
.btn:not(.btn-outline):not(.btn-link) *,
input[type="submit"] *,
a.btn:not(.btn-outline):not(.btn-link) *,
#wrapper .theme-main-site .btn,
#wrapper .theme-main-site .btn *,
#wrapper .theme-main-site button,
#wrapper .theme-main-site button *,
body.theme-main-site .btn,
body.theme-main-site .btn *,
body.carenavi-dash .theme-main-site .btn,
body.carenavi-dash .theme-main-site .btn * {
    color: #fff !important;
}
.theme-main-site button:hover,
.theme-main-site .btn:hover,
.theme-main-site input[type="submit"]:hover,
.theme-main-site input[type="button"]:hover,
.theme-main-site input[type="reset"]:hover,
button.btn:hover,
.btn-primary:hover,
.btn:not(.btn-outline):not(.btn-link):hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
a.btn:not(.btn-outline):not(.btn-link):hover {
    background: linear-gradient(135deg, #13547a 0%, #5da8b5 100%) !important;
    color: #fff !important;
    transform: scale(1.06) !important;
    box-shadow: 0 6px 20px rgba(19, 84, 122, 0.35), 0 0 0 3px rgba(19, 84, 122, 0.12) !important;
}
.theme-main-site button:focus,
.theme-main-site .btn:focus,
.theme-main-site input[type="submit"]:focus,
.theme-main-site input[type="button"]:focus,
.theme-main-site input[type="reset"]:focus,
button.btn:focus,
.btn-primary:focus,
.btn:not(.btn-outline):not(.btn-link):focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
a.btn:not(.btn-outline):not(.btn-link):focus {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
    color: #fff !important;
    transform: scale(1.04) !important;
    box-shadow: 0 6px 20px rgba(19, 84, 122, 0.35), 0 0 0 3px rgba(19, 84, 122, 0.2) !important;
    outline: none !important;
}

/* Doctor Profile - layout and CareNavi theme (replaces stripped Doccure custom.css) */
.theme-main-site .main-wrapper {
    background: #edf6f9 !important;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}
.theme-main-site .footer-bottom {
    padding: 1rem 0 !important;
}
.theme-main-site .footer-bottom .copyright {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}
.theme-main-site .btn-outline-primary,
body.carenavi-dash .btn-outline-primary {
    border-color: #2e86ab !important;
    color: #2e86ab !important;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1), background 0.2s !important;
}
.theme-main-site .btn-outline-primary:hover,
body.carenavi-dash .btn-outline-primary:hover {
    background: rgba(19, 84, 122, 0.1) !important;
    transform: scale(1.06) !important;
    box-shadow: 0 4px 16px rgba(19, 84, 122, 0.2) !important;
}
body.carenavi-dash .btn-outline-secondary,
.theme-main-site .btn-outline-secondary {
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1), background 0.2s !important;
}
body.carenavi-dash .btn-outline-secondary:hover,
.theme-main-site .btn-outline-secondary:hover {
    transform: scale(1.06) !important;
    box-shadow: 0 4px 16px rgba(19, 84, 122, 0.15) !important;
}
.theme-main-site .table-bordered th,
.theme-main-site .table-bordered td {
    border-color: rgba(19, 84, 122, 0.2) !important;
}
.theme-main-site .table thead th {
    background: rgba(19, 84, 122, 0.08) !important;
    color: #2e86ab !important;
    font-weight: 600 !important;
}
/* Admin dashboard cards - main site theme */
.theme-main-site .card,
body.theme-main-site .card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(19, 84, 122, 0.12);
    border: 2px solid rgba(19, 84, 122, 0.15);
}
.theme-main-site .card-stats .card-body,
body.theme-main-site .card-stats .card-body {
    padding: 1.25rem;
}
.theme-main-site .icon-big,
body.theme-main-site .icon-big {
    font-size: 2.5rem;
}
.theme-main-site .card-category,
body.theme-main-site .card-category {
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.theme-main-site .card-title,
body.theme-main-site .card-title {
    color: #2e86ab;
    font-weight: 700;
}
.theme-main-site .text-primary,
body.theme-main-site .text-primary { color: #2e86ab !important; }
.theme-main-site .text-success,
body.theme-main-site .text-success { color: #3a7ca5 !important; }
.theme-main-site .text-info,
body.theme-main-site .text-info { color: #06b6d4 !important; }
.theme-main-site .text-warning,
body.theme-main-site .text-warning { color: #f59e0b !important; }
.theme-main-site .badge-success { background: #3a7ca5 !important; }
.theme-main-site .badge-info { background: #2e86ab !important; }
.theme-main-site .badge-danger { background: #dc2626 !important; }
.theme-main-site .badge-secondary { background: #64748b !important; }

/* CareNavi Dashboard Template - shared across patient, doctor, facility, insurance dashboards */
.theme-main-site .dash-template,
body.theme-main-site .dash-template {
    --dash-primary: #2e86ab;
    --dash-secondary: #1a6b8a;
    --dash-bg: #edf6f9;
    --dash-success: #3a7ca5;
    --dash-warning: #d97706;
    --dash-card-bg: #fff;
    --dash-text: #1e293b;
}
.theme-main-site .dash-welcome,
body.theme-main-site .dash-welcome {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(19, 84, 122, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.theme-main-site .dash-welcome h4,
body.theme-main-site .dash-welcome h4 {
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    font-size: 1.35rem;
}
.theme-main-site .dash-welcome p,
body.theme-main-site .dash-welcome p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
}
.theme-main-site .dash-stat-card,
body.theme-main-site .dash-stat-card {
    background: var(--dash-card-bg);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(19, 84, 122, 0.12);
    border: 2px solid rgba(19, 84, 122, 0.15);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.theme-main-site .dash-stat-card:hover,
body.theme-main-site .dash-stat-card:hover {
    box-shadow: 0 6px 20px rgba(19, 84, 122, 0.18);
}
.theme-main-site .dash-stat-icon,
body.theme-main-site .dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}
.theme-main-site .dash-stat-icon.blue,
body.theme-main-site .dash-stat-icon.blue {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%);
}
.theme-main-site .dash-stat-icon.green,
body.theme-main-site .dash-stat-icon.green {
    background: linear-gradient(135deg, #13547a 0%, #3a7ca5 100%);
}
.theme-main-site .dash-stat-icon.amber,
body.theme-main-site .dash-stat-icon.amber {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
}
.theme-main-site .dash-stat-icon.purple,
body.theme-main-site .dash-stat-icon.purple {
    background: linear-gradient(135deg, #2e86ab 0%, #3a7ca5 100%);
}
.theme-main-site .dash-stat-label,
body.theme-main-site .dash-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.theme-main-site .dash-stat-value,
body.theme-main-site .dash-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e86ab;
}
.theme-main-site .dash-card,
body.theme-main-site .dash-card {
    background: var(--dash-card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(19, 84, 122, 0.12);
    border: 2px solid rgba(19, 84, 122, 0.15);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.theme-main-site .dash-card-header,
body.theme-main-site .dash-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(19, 84, 122, 0.12);
    font-weight: 700;
    font-size: 1rem;
    color: #2e86ab;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.theme-main-site .dash-card-body,
body.theme-main-site .dash-card-body {
    padding: 1rem 1.5rem;
}
/* CareNavi nav-tabs inside dash-card (doctor profile settings, etc.) */
.theme-main-site .dash-nav-tabs,
body.theme-main-site .dash-nav-tabs,
.dash-template .dash-nav-tabs {
    border-bottom: 2px solid rgba(19, 84, 122, 0.15) !important;
}
.theme-main-site .dash-nav-tabs .nav-link,
body.theme-main-site .dash-nav-tabs .nav-link,
.dash-template .dash-nav-tabs .nav-link {
    color: #64748b !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 0;
}
.theme-main-site .dash-nav-tabs .nav-link:hover,
body.theme-main-site .dash-nav-tabs .nav-link:hover,
.dash-template .dash-nav-tabs .nav-link:hover {
    color: #2e86ab !important;
}
.theme-main-site .dash-nav-tabs .nav-link.active,
body.theme-main-site .dash-nav-tabs .nav-link.active,
.dash-template .dash-nav-tabs .nav-link.active {
    color: #2e86ab !important;
    border-bottom-color: #2e86ab !important;
    background: transparent !important;
}
.theme-main-site .dash-table,
body.theme-main-site .dash-table {
    width: 100%;
    font-size: 0.9rem;
}
.theme-main-site .dash-table th,
body.theme-main-site .dash-table th {
    text-align: left;
    padding: 0.6rem 0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(19, 84, 122, 0.15);
}
.theme-main-site .dash-table td,
body.theme-main-site .dash-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(19, 84, 122, 0.06);
}
.theme-main-site .dash-table tr:last-child td,
body.theme-main-site .dash-table tr:last-child td {
    border-bottom: none;
}
.theme-main-site .dash-patient-row,
body.theme-main-site .dash-patient-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(19, 84, 122, 0.06);
}
.theme-main-site .dash-patient-row:last-child,
body.theme-main-site .dash-patient-row:last-child {
    border-bottom: none;
}
.theme-main-site .dash-patient-avatar,
body.theme-main-site .dash-patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(19, 84, 122, 0.08);
}
.theme-main-site .dash-next-apt,
body.theme-main-site .dash-next-apt {
    background: linear-gradient(135deg, rgba(19, 84, 122, 0.08) 0%, rgba(128, 208, 199, 0.15) 100%);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(19, 84, 122, 0.2);
}
.theme-main-site .dash-next-apt h6,
body.theme-main-site .dash-next-apt h6 {
    color: #2e86ab !important;
}
.theme-main-site .dash-btn-primary,
body.theme-main-site .dash-btn-primary,
body.carenavi-dash .dash-btn-primary {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%);
    color: #fff !important;
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1), opacity 0.2s;
}
.theme-main-site .dash-btn-primary:hover,
body.theme-main-site .dash-btn-primary:hover,
body.carenavi-dash .dash-btn-primary:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 20px rgba(19,84,122,0.35);
    opacity: 1;
    color: #fff !important;
}
.theme-main-site .dash-btn-primary:active,
body.theme-main-site .dash-btn-primary:active,
body.carenavi-dash .dash-btn-primary:active {
    transform: scale(1.02);
}
.theme-main-site .dash-btn-primary,
.theme-main-site .dash-btn-primary *,
body.theme-main-site .dash-btn-primary,
body.theme-main-site .dash-btn-primary *,
#wrapper .theme-main-site .dash-btn-primary,
#wrapper .theme-main-site .dash-btn-primary * {
    color: #fff !important;
}
.theme-main-site .dash-link,
body.theme-main-site .dash-link {
    color: #2e86ab;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}
.theme-main-site .dash-link:hover,
body.theme-main-site .dash-link:hover {
    color: #13547a;
    text-decoration: underline;
}
.theme-main-site .btn-outline-secondary,
body.theme-main-site .btn-outline-secondary {
    border-color: rgba(19, 84, 122, 0.4);
    color: #2e86ab;
}
.theme-main-site .btn-outline-secondary:hover,
body.theme-main-site .btn-outline-secondary:hover {
    background: rgba(19, 84, 122, 0.08);
    border-color: #2e86ab;
    color: #2e86ab;
}

/* Dashboard forms - placeholder and typed text visibility */
.theme-main-site .dash-template input::placeholder,
.theme-main-site .dash-template textarea::placeholder,
.theme-main-site .dash-card input::placeholder,
.theme-main-site .dash-card textarea::placeholder,
.theme-main-site .dash-card .form-control::placeholder {
    color: #4a6b7c !important;
    opacity: 1;
}
.theme-main-site .dash-template input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.theme-main-site .dash-template textarea,
.theme-main-site .dash-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.theme-main-site .dash-card textarea,
.theme-main-site .dash-template .form-control,
.theme-main-site .dash-card .form-control {
    color: #1e293b !important;
    background-color: #fff !important;
}
.theme-main-site .dash-template .form-select,
.theme-main-site .dash-card .form-select,
.theme-main-site .dash-template select.form-control,
.theme-main-site .dash-card select.form-control {
    color: #1e293b !important;
}

/* Dashboard and card font sizes - improve readability */
.theme-main-site .dash-template .small,
.theme-main-site .dash-template p.small,
.theme-main-site .dash-template .text-muted.small,
.theme-main-site .dash-card .dash-card-body .small,
.theme-main-site .dash-card .dash-card-body .text-muted.small {
    font-size: 1rem !important;
}
.theme-main-site .dash-card .dash-card-body p,
.theme-main-site .dash-card .dash-card-body .text-muted {
    font-size: 1rem !important;
}
.theme-main-site .dash-template .text-muted:not(.small) {
    font-size: 1rem !important;
}
.theme-main-site .dash-template .dash-card-body p,
.theme-main-site .dash-template .dash-card-body td,
.theme-main-site .dash-template .dash-card-body li {
    font-size: 1rem !important;
}
.theme-main-site .dash-template .dash-stat-label {
    font-size: 0.875rem !important;
}
.theme-main-site .dash-template .dash-stat-value {
    font-size: 1.5rem !important;
}
.theme-main-site .dash-template h4 {
    font-size: 1.4rem !important;
}
.theme-main-site .dash-template h6 {
    font-size: 1.1rem !important;
}
.theme-main-site .dash-template .dash-card-header {
    font-size: 1.05rem !important;
}

/* Dashboard text visibility - ensure all words are readable across backgrounds */
.theme-main-site .dash-template .text-muted,
.theme-main-site .dash-template .text-muted.small,
body.theme-main-site .dash-template .text-muted {
    color: #475569 !important;
}
.theme-main-site .dash-template .btn-link.text-muted,
.theme-main-site .dash-template button.text-muted {
    color: #475569 !important;
}
.theme-main-site .dash-template .dash-stat-label,
body.theme-main-site .dash-template .dash-stat-label {
    color: #334155 !important;
}
.theme-main-site .dash-template .dash-stat-value,
body.theme-main-site .dash-template .dash-stat-value {
    color: #2e86ab !important;
}
.theme-main-site .dash-template .dash-welcome p,
body.theme-main-site .dash-template .dash-welcome p {
    color: rgba(255, 255, 255, 1) !important;
    opacity: 1 !important;
}
/* Ensure facility type + date (e.g. "Health and Wellness · Thursday, March 12, 2026") stay visible on gradient */
.theme-main-site .dash-template .dash-welcome p.text-muted,
.theme-main-site .dash-template .dash-welcome p.text-muted.small,
body.theme-main-site .dash-template .dash-welcome p.text-muted {
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
}
.theme-main-site .dash-template .dash-card-body p:not([class*="text-white"]),
.theme-main-site .dash-template .dash-card-body td,
.theme-main-site .dash-template .dash-card-body li,
body.theme-main-site .dash-template .dash-card-body p:not([class*="text-white"]),
body.theme-main-site .dash-template .dash-card-body td,
body.theme-main-site .dash-template .dash-card-body li {
    color: #1e293b !important;
}
/* Keep white text on gradient backgrounds (e.g. loyalty card) */
.theme-main-site .dash-template [style*="linear-gradient(135deg, #2e86ab"] p,
.theme-main-site .dash-template [style*="linear-gradient(135deg, #2e86ab"] span,
.theme-main-site .dash-template [style*="linear-gradient(135deg, #2e86ab"] .text-white {
    color: #fff !important;
}
.theme-main-site .dash-template .dash-card-body .text-muted,
.theme-main-site .dash-template .dash-card-body p.text-muted,
.theme-main-site .dash-template .dash-card-body .small.text-muted,
body.theme-main-site .dash-template .dash-card-body .text-muted {
    color: #475569 !important;
}
.theme-main-site .dash-template .dash-table th,
body.theme-main-site .dash-template .dash-table th {
    color: #334155 !important;
}
.theme-main-site .dash-template .dash-table td,
body.theme-main-site .dash-template .dash-table td {
    color: #1e293b !important;
}
.theme-main-site .dash-template .dash-table td.text-muted,
body.theme-main-site .dash-template .dash-table td.text-muted {
    color: #475569 !important;
}
.theme-main-site .dash-template .text-dark,
.theme-main-site .dash-template .fw-bold.text-dark,
body.theme-main-site .dash-template .text-dark {
    color: #0f172a !important;
}
/* Tailwind-like text-slate classes used in facility/insurance dashboards */
.theme-main-site .dash-template .text-slate-500,
.theme-main-site .dash-template .text-slate-600,
.theme-main-site .dash-template .text-slate-400,
body.theme-main-site .dash-template .text-slate-500,
body.theme-main-site .dash-template .text-slate-600,
body.theme-main-site .dash-template .text-slate-400 {
    color: #475569 !important;
}
.theme-main-site .dash-template .text-emerald-600,
.theme-main-site .dash-template .text-emerald-700,
.theme-main-site .dash-template .text-emerald-400,
body.theme-main-site .dash-template .text-emerald-600,
body.theme-main-site .dash-template .text-emerald-700,
body.theme-main-site .dash-template .text-emerald-400 {
    color: #13547a !important;
}
.theme-main-site .dash-template .text-yellow-600,
.theme-main-site .dash-template .text-yellow-700,
.theme-main-site .dash-template [class*="text-yellow-7"],
body.theme-main-site .dash-template .text-yellow-600,
body.theme-main-site .dash-template .text-yellow-700 {
    color: #b45309 !important;
}
.theme-main-site .dash-template .dark\:text-white,
.theme-main-site .dash-template .dark\:text-yellow-400,
.theme-main-site .dash-template .dark\:text-emerald-400,
.theme-main-site .dash-template .dark\:text-slate-400,
body.theme-main-site .dash-template [class*="dark:text-"] {
    color: #1e293b !important;
}
.theme-main-site .dash-template .font-bold,
.theme-main-site .dash-template h6.fw-bold,
body.theme-main-site .dash-template .font-bold {
    color: #0f172a !important;
}
.theme-main-site .dash-template .dash-next-apt .text-muted,
.theme-main-site .dash-template .dash-next-apt p.text-muted,
body.theme-main-site .dash-template .dash-next-apt .text-muted {
    color: #475569 !important;
}
.theme-main-site .dash-template .dash-next-apt a,
.theme-main-site .dash-template .dash-next-apt .dash-link {
    color: #2e86ab !important;
}
/* Health vitals section */
.theme-main-site .dash-template [style*="background:rgba(19,84,122"] .dash-stat-label,
.theme-main-site .dash-template [style*="background:rgba(19,84,122"] p,
.theme-main-site .dash-template [style*="background:rgba(16,185,129"] .dash-stat-label,
.theme-main-site .dash-template [style*="background:rgba(16,185,129"] p {
    color: #1e293b !important;
}
.theme-main-site .dash-template [style*="background:rgba(19,84,122"] .dash-stat-value,
.theme-main-site .dash-template [style*="background:rgba(16,185,129"] .dash-stat-value {
    color: #2e86ab !important;
}
/* Alerts - ensure text is visible */
.theme-main-site .dash-template .alert,
.theme-main-site .dash-template .alert-success,
.theme-main-site .dash-template .alert-info {
    color: #1e293b !important;
}
.theme-main-site .dash-template .alert-success {
    background-color: rgba(19, 84, 122, 0.15);
    border-color: rgba(19, 84, 122, 0.4);
}
.theme-main-site .dash-template .alert-info {
    background-color: rgba(19, 84, 122, 0.12);
    border-color: rgba(19, 84, 122, 0.3);
}

/* Content area - glass theme uses transparent, non-glass uses light */
body.carenavi-dash .content-wrapper .theme-main-site {
    background: transparent !important;
    padding-bottom: 1rem;
}
body:not(.carenavi-dash) .content-wrapper .theme-main-site {
    background: #edf6f9 !important;
    padding-bottom: 1rem;
}
.content-wrapper .theme-main-site .breadcrumb,
.content-wrapper .theme-main-site .breadcrumb-item,
.content-wrapper .theme-main-site .breadcrumb-item a {
    color: #1e293b !important;
}
.content-wrapper .theme-main-site .breadcrumb-item.active {
    color: #2e86ab !important;
}

/* Utility for modal visibility (Tailwind .hidden equivalent) */
.hidden { display: none !important; }

/* Admin modals - fixed overlay, no scroll, fits one page */
.admin-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    overflow: hidden !important;
}
.admin-modal-overlay.hidden {
    display: none !important;
}
.admin-modal-dialog {
    margin: auto !important;
    max-width: 28rem !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}
.admin-modal-overlay .dash-card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
}

/* CareNavi Dashboard Theme - teal-blue gradient background */
body.carenavi-dash,
body.carenavi-dash.bg-theme1 {
    --dash-bg-gradient: linear-gradient(135deg, #13547a 0%, #3a7ca5 35%, #5da8b5 65%, #80d0c7 100%);
    --glass-card-bg: rgba(255, 255, 255, 0.55);
    --glass-card-border: rgba(19, 84, 122, 0.18);
    background: var(--dash-bg-gradient) !important;
    background-image: var(--dash-bg-gradient) !important;
    background-attachment: fixed !important;
    color: #1e293b !important;
}
/* Override Dashtreme base white text for glass-card dashboard */
body.carenavi-dash .content-wrapper,
body.carenavi-dash .content-wrapper p,
body.carenavi-dash .content-wrapper span,
body.carenavi-dash .content-wrapper label,
body.carenavi-dash .content-wrapper li,
body.carenavi-dash .content-wrapper .card,
body.carenavi-dash .content-wrapper .card-body,
body.carenavi-dash .content-wrapper .list-group-item {
    color: #1e293b !important;
}
body.carenavi-dash .content-wrapper .table,
body.carenavi-dash .content-wrapper .table td,
body.carenavi-dash .content-wrapper .table th,
body.carenavi-dash .table,
body.carenavi-dash .table td,
body.carenavi-dash .table th {
    color: #1e293b !important;
    border-color: rgba(19, 84, 122, 0.1) !important;
}
body.carenavi-dash .content-wrapper .table thead th,
body.carenavi-dash .table thead th {
    color: #13547a !important;
    font-weight: 700 !important;
}
body.carenavi-dash .content-wrapper a.dash-link,
body.carenavi-dash a.dash-link {
    color: #2e86ab !important;
}
/* Sidebar - dark navy teal */
body.carenavi-dash #sidebar-wrapper {
    background: linear-gradient(180deg, #0a2e4a 0%, #0e3d5e 40%, #13547a 100%) !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.25) !important;
    border-right: none !important;
}
body.carenavi-dash #sidebar-wrapper .brand-logo a,
body.carenavi-dash #sidebar-wrapper .brand-logo .logo-text,
body.carenavi-dash #sidebar-wrapper .brand-logo h5 {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
body.carenavi-dash #sidebar-wrapper .sidebar-menu li.sidebar-header {
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}
body.carenavi-dash #sidebar-wrapper .sidebar-menu a,
body.carenavi-dash #sidebar-wrapper .sidebar-menu > li > a,
body.carenavi-dash #sidebar-wrapper .sidebar-menu .sidebar-submenu > li > a,
body.carenavi-dash #sidebar-wrapper .sidebar-menu a span {
    color: rgba(255, 255, 255, 0.78) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
    transition: all 0.2s ease;
}
body.carenavi-dash #sidebar-wrapper .sidebar-menu li:hover > a,
body.carenavi-dash #sidebar-wrapper .sidebar-menu li:hover > a span {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    -webkit-text-fill-color: #ffffff !important;
}
body.carenavi-dash #sidebar-wrapper .sidebar-menu li.active > a,
body.carenavi-dash #sidebar-wrapper .sidebar-menu li.active > a span {
    color: #ffffff !important;
    background: rgba(128, 208, 199, 0.2) !important;
    border-left: 3px solid #80d0c7 !important;
    -webkit-text-fill-color: #ffffff !important;
}
body.carenavi-dash #sidebar-wrapper .sidebar-menu li > a i,
body.carenavi-dash #sidebar-wrapper .sidebar-menu li > a .zmdi {
    color: inherit !important;
}
body.carenavi-dash .content-wrapper {
    background: transparent !important;
}
body.carenavi-dash .breadcrumb,
body.carenavi-dash .breadcrumb-item,
body.carenavi-dash .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7) !important;
}
body.carenavi-dash .breadcrumb-item.active {
    color: #ffffff !important;
}
/* Topbar - dark translucent matching sidebar */
body.carenavi-dash .topbar-nav .navbar,
body.carenavi-dash .topbar-nav .navbar-nav {
    background: rgba(10, 46, 74, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(128, 208, 199, 0.15) !important;
}
body.carenavi-dash .topbar-nav .navbar-text,
body.carenavi-dash .navbar-text {
    color: #ffffff !important;
}
body.carenavi-dash .topbar-nav .nav-link,
body.carenavi-dash .topbar-nav .toggle-menu i {
    color: rgba(255, 255, 255, 0.85) !important;
}
body.carenavi-dash .search-bar input {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(128, 208, 199, 0.25) !important;
    border-radius: 8px;
}
body.carenavi-dash .search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
body.carenavi-dash .search-bar a i {
    color: rgba(255, 255, 255, 0.7) !important;
}
/* Cards - glass effect with curved borders */
body.carenavi-dash .theme-main-site .dash-template,
body.carenavi-dash .theme-main-site .dash-card,
body.carenavi-dash .theme-main-site .dash-stat-card,
body.carenavi-dash .theme-main-site .card,
body.carenavi-dash .dash-template,
body.carenavi-dash .dash-card,
body.carenavi-dash .dash-stat-card,
body.carenavi-dash .card {
    background: var(--glass-card-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--glass-card-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 24px rgba(19, 84, 122, 0.12) !important;
}
body.carenavi-dash .dash-welcome {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 20px !important;
}
body.carenavi-dash .dash-stat-label,
body.carenavi-dash .dash-card-header,
body.carenavi-dash .dash-stat-value,
body.carenavi-dash .dash-template h4,
body.carenavi-dash .dash-template h6 {
    color: #1e293b !important;
}
body.carenavi-dash .dash-template .text-muted,
body.carenavi-dash .dash-card-body .text-muted,
body.carenavi-dash .dash-table td,
body.carenavi-dash .dash-card-body p,
body.carenavi-dash .dash-card-body li,
body.carenavi-dash .dash-card-body td,
body.carenavi-dash .dash-stat-card p,
body.carenavi-dash .dash-stat-card span {
    color: #475569 !important;
}
body.carenavi-dash .dash-table th {
    color: #13547a !important;
    border-bottom-color: rgba(19, 84, 122, 0.25) !important;
}
body.carenavi-dash .dash-stat-icon.blue {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
}
body.carenavi-dash .dash-stat-icon.green {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
}
body.carenavi-dash .dash-stat-icon.amber {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
}
body.carenavi-dash .dash-stat-icon.purple {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
}
body.carenavi-dash .dash-btn-primary {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
body.carenavi-dash .dash-link,
body.carenavi-dash a:not(.btn):not(.dropdown-item) {
    color: #13547a !important;
}
body.carenavi-dash .dash-link:hover,
body.carenavi-dash a:not(.btn):not(.dropdown-item):hover {
    color: #1a6b8a !important;
}
body.carenavi-dash .btn-outline-primary {
    border-color: #2e86ab !important;
    color: #13547a !important;
}
body.carenavi-dash .btn-outline-primary:hover {
    background: rgba(19, 84, 122, 0.15) !important;
    color: #13547a !important;
}
body.carenavi-dash .btn-outline-secondary {
    border-color: rgba(19, 84, 122, 0.4) !important;
    color: #334155 !important;
}
body.carenavi-dash .btn-outline-secondary:hover {
    background: rgba(19, 84, 122, 0.08) !important;
}
/* Form inputs - light theme */
body.carenavi-dash input[type="text"],
body.carenavi-dash input[type="email"],
body.carenavi-dash input[type="password"],
body.carenavi-dash input[type="number"],
body.carenavi-dash input[type="search"],
body.carenavi-dash input[type="tel"],
body.carenavi-dash input[type="time"],
body.carenavi-dash textarea,
body.carenavi-dash select,
body.carenavi-dash input.form-control,
body.carenavi-dash textarea.form-control,
body.carenavi-dash select.form-control,
body.carenavi-dash .form-control {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid rgba(19, 84, 122, 0.3) !important;
}
body.carenavi-dash input.form-control::placeholder,
body.carenavi-dash textarea.form-control::placeholder {
    color: #64748b !important;
}
body.carenavi-dash select.form-control option {
    background: #ffffff !important;
    color: #1e293b !important;
}
body.carenavi-dash label,
body.carenavi-dash .form-label {
    color: #1e293b !important;
}
body.carenavi-dash .alert-success {
    background: rgba(19, 84, 122, 0.15) !important;
    border-color: rgba(19, 84, 122, 0.4) !important;
    color: #13547a !important;
}
body.carenavi-dash .alert-danger {
    background: rgba(244, 67, 54, 0.15) !important;
    border-color: rgba(244, 67, 54, 0.4) !important;
    color: #b91c1c !important;
}
body.carenavi-dash .nav-tabs .nav-link,
body.carenavi-dash .dash-nav-tabs .nav-link {
    color: #64748b !important;
}
body.carenavi-dash .nav-tabs .nav-link.active {
    color: #13547a !important;
    border-bottom-color: #2e86ab !important;
}
body.carenavi-dash .dash-nav-tabs .nav-link.active {
    border-bottom-color: #2e86ab !important;
}
body.carenavi-dash .footer {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #334155 !important;
    border-top: 1px solid rgba(19, 84, 122, 0.2) !important;
}
body.carenavi-dash .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(19, 84, 122, 0.25) !important;
}
body.carenavi-dash .dropdown-item {
    color: #1e293b !important;
}
body.carenavi-dash .dropdown-item:hover {
    background: rgba(19, 84, 122, 0.1) !important;
}
body.carenavi-dash .user-details .user-title,
body.carenavi-dash .user-details .user-subtitle {
    color: #1e293b !important;
}
body.carenavi-dash .text-dark,
body.carenavi-dash .dash-template .text-dark,
body.carenavi-dash .dash-template .small,
body.carenavi-dash .dash-template .text-slate-500,
body.carenavi-dash .dash-template .text-slate-600,
body.carenavi-dash .dash-card-body .small,
body.carenavi-dash .dash-stat-label,
body.carenavi-dash .dash-template h1,
body.carenavi-dash .dash-template h2,
body.carenavi-dash .dash-template h3,
body.carenavi-dash .dash-template h5 {
    color: #1e293b !important;
}
/* dash-welcome gradient - keep white text */
body.carenavi-dash .dash-welcome h4,
body.carenavi-dash .dash-welcome p,
body.carenavi-dash .dash-welcome span,
body.carenavi-dash .dash-welcome .text-muted {
    color: #ffffff !important;
}
body.carenavi-dash .border-top,
body.carenavi-dash .border-bottom {
    border-color: rgba(19, 84, 122, 0.2) !important;
}

/* Override Tailwind/Bootstrap solid panels - same glass card transparency */
body.carenavi-dash .content-wrapper .bg-white,
body.carenavi-dash .content-wrapper [class*="bg-white"],
body.carenavi-dash .content-wrapper .dark\:bg-slate-850,
body.carenavi-dash .content-wrapper [class*="dark:bg-slate"] {
    background: var(--glass-card-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-card-border) !important;
}
body.carenavi-dash .content-wrapper table,
body.carenavi-dash .content-wrapper tbody td,
body.carenavi-dash .content-wrapper tbody th,
body.carenavi-dash .content-wrapper .text-slate-600,
body.carenavi-dash .content-wrapper .text-slate-500,
body.carenavi-dash .content-wrapper .dark\:text-slate-300,
body.carenavi-dash .content-wrapper .dark\:text-slate-400,
body.carenavi-dash .content-wrapper .dark\:text-white,
body.carenavi-dash .content-wrapper .bg-slate-50,
body.carenavi-dash .content-wrapper .dark\:bg-slate-800 {
    color: #1e293b !important;
    background: transparent !important;
}
body.carenavi-dash .content-wrapper thead {
    background: rgba(19, 84, 122, 0.06) !important;
    border-bottom: 2px solid rgba(19, 84, 122, 0.2) !important;
}
body.carenavi-dash .content-wrapper thead th {
    color: #13547a !important;
    font-weight: 700 !important;
}
body.carenavi-dash .content-wrapper tbody tr {
    border-bottom-color: rgba(19, 84, 122, 0.12) !important;
}
body.carenavi-dash .content-wrapper tbody tr:hover {
    background: rgba(19, 84, 122, 0.05) !important;
}
body.carenavi-dash .content-wrapper .border-slate-200,
body.carenavi-dash .content-wrapper .dark\:border-slate-700,
body.carenavi-dash .content-wrapper .border-black\/12\.5 {
    border-color: rgba(19, 84, 122, 0.2) !important;
}
body.carenavi-dash .content-wrapper h6,
body.carenavi-dash .content-wrapper .font-bold {
    color: #1e293b !important;
}
body.carenavi-dash .content-wrapper a:not(.btn) {
    color: #13547a !important;
}
body.carenavi-dash .content-wrapper a:hover:not(.btn) {
    color: #1a6b8a !important;
}
body.carenavi-dash .content-wrapper .hover\:text-blue-500:hover {
    color: #5da8b5 !important;
}
body.carenavi-dash .content-wrapper .text-blue-500 {
    color: #5da8b5 !important;
}
body.carenavi-dash .content-wrapper .bg-blue-500 {
    background: linear-gradient(135deg, #2e86ab 0%, #1a6b8a 100%) !important;
}
body.carenavi-dash .content-wrapper button.text-slate-600,
body.carenavi-dash .content-wrapper button.dark\:text-slate-400 {
    color: #475569 !important;
}
body.carenavi-dash .content-wrapper button:hover {
    background: rgba(19, 84, 122, 0.1) !important;
    color: #1e293b !important;
}
body.carenavi-dash .content-wrapper .breadcrumb,
body.carenavi-dash .content-wrapper .breadcrumb-item,
body.carenavi-dash .content-wrapper .breadcrumb-item a {
    color: #334155 !important;
}
/* Override Dashtreme white table text for glass cards */
body.carenavi-dash .table,
body.carenavi-dash .table td,
body.carenavi-dash .table th,
body.carenavi-dash .theme-main-site .table,
body.carenavi-dash .theme-main-site .table td,
body.carenavi-dash .theme-main-site .table th,
body.carenavi-dash .theme-main-site .dash-template .table th,
body.carenavi-dash .theme-main-site .dash-template .table td,
body.carenavi-dash .theme-main-site .dash-template .dash-table th,
body.carenavi-dash .theme-main-site .dash-template .dash-table td,
body.carenavi-dash .dash-table th,
body.carenavi-dash .dash-table td {
    color: #1e293b !important;
}
body.carenavi-dash .table thead th,
body.carenavi-dash .theme-main-site .table thead th,
body.carenavi-dash .theme-main-site .dash-template .table thead th,
body.carenavi-dash .theme-main-site .dash-template .table-responsive .table th,
body.carenavi-dash .dash-table thead th {
    color: #13547a !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-bottom: 2px solid rgba(19, 84, 122, 0.2) !important;
    background: rgba(19, 84, 122, 0.06) !important;
}
/* Footer copyright */
body.carenavi-dash .footer,
body.carenavi-dash .footer *,
body.carenavi-dash .footer .text-center {
    color: #334155 !important;
}
body.carenavi-dash .content-wrapper .text-danger {
    color: #f87171 !important;
}
body.carenavi-dash .btn-link.text-success {
    color: #5da8b5 !important;
}
body.carenavi-dash .btn-link.text-success:hover {
    color: #80d0c7 !important;
}
body.carenavi-dash .btn-link.text-danger {
    color: #f87171 !important;
}
body.carenavi-dash .btn-link.text-danger:hover {
    color: #fca5a5 !important;
}

/* ─── Mobile responsiveness for dashboard ─── */
@media (max-width: 768px) {
    .theme-main-site .dash-welcome {
        padding: 1rem 1.25rem;
    }
    .theme-main-site .dash-welcome h4 {
        font-size: 1.15rem !important;
    }
    .theme-main-site .dash-stat-card {
        padding: 1rem;
    }
    .theme-main-site .dash-stat-value {
        font-size: 1.25rem !important;
    }
    .theme-main-site .dash-card-header {
        padding: 0.75rem 1rem;
        font-size: 0.95rem !important;
    }
    .theme-main-site .dash-card-body {
        padding: 0.75rem 1rem;
    }
    .theme-main-site .dash-table {
        font-size: 0.85rem;
    }
    .theme-main-site .dash-table th,
    .theme-main-site .dash-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* ─── Remove breadcrumb/site-map everywhere ─── */
.breadcrumb-bar,
.breadcrumb-title,
.breadcrumb-spacer,
nav[aria-label="breadcrumb"],
nav.page-breadcrumb,
ul.breadcrumb {
    display: none !important;
}

/* ─── Ensure dash-welcome titles are white everywhere ─── */
.dash-welcome h1,
.dash-welcome h2,
.dash-welcome h3,
.dash-welcome h4,
.dash-welcome p,
.dash-welcome span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
