:root {
  --font-family-sans-serif: "SF Pro Display", "Segoe UI Sans", "Ubuntu", Cantarell, "Helvetica Neue", sans-serif;
}


/* ---- Global Font Family Assignment ---- */
body {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif !important;
    background-color: #f4fafb;
    color: #334155;
}

/* ---- Modern Navbar Container ---- */
.navbar-modern {
    background-color: #414dcfeb !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.navbar-brand-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-modern:hover {
    color: #0f172a;
}

/* ---- Centered Nav Pill Container ---- */
.nav-pill-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.35rem;
    border-radius: 9999px;
    display: flex;
}

.nav-link-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.nav-link-btn:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

/* Dynamic current page indicator matching pill layout */
.nav-link-btn:focus,
.nav-link-btn:active {
    background-color: #3b82f6;
    color: #ffffff !important;
}

/* ---- Support Channel Buttons ---- */
.support-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.support-icon-btn:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #3b82f6;
    transform: translateY(-1px);
}

/* ---- Vertical Navbar Divider ---- */
.nav-vertical-divider {
    width: 1px;
    height: 24px;
    background-color: #cbd5e1;
    margin: 0 0.25rem;
}

/* ---- User Profile Tag ---- */
.user-profile-badge {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

/* ---- Logout Button ---- */
.btn-logout-modern {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d2d2d2;
    background-color: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-logout-modern:hover {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #ef4444;
}

/* ---- Responsive Layout Support (Mobile Adjustments) ---- */
@media (max-width: 991.98px) {
    .nav-pill-container {
        border-radius: 12px;
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .nav-link-btn {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
    }
    
    .w-100-mobile {
        width: 100% !important;
    }
}


/*consultation detail */

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* ---- Modern Dashboard Cards ---- */
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

.metric-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Accent Borders */
.border-start-primary { border-left: 4px solid #3b82f6 !important; }
.border-start-success { border-left: 4px solid #10b981 !important; }
.border-start-warning { border-left: 4px solid #f59e0b !important; }
.border-start-danger { border-left: 4px solid #ef4444 !important; }

/* Icon wrappers inside Metric cards */
.metric-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: bold;
}

.bg-primary-soft { background-color: #eff6ff; }
.bg-success-soft { background-color: #ecfdf5; }
.bg-warning-soft { background-color: #fffbeb; }
.bg-danger-soft { background-color: #fef2f2; }
.bg-info-soft { background-color: #ecfeff; }

/* ---- Dental Chart Wrapper & Container ---- */
.dental-chart-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dental-chart-inner {
    min-width: 820px;
    margin: 0 auto;
}

.jaw-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jaw-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.quadrants-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.quadrant-box {
    display: flex;
    flex-direction: column;
}

.quadrant-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    display: inline-block;
    margin: 0 auto;
}

.tooth-row {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.tooth-item {
    position: relative;
}

.tooth-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Squircle buttons matching the screenshot style */
.tooth-label {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    user-select: none;
    background: #f8fafc;
    color: #334155;
    transition: all 0.15s ease-in-out;
}

.tooth-label:hover {
    border-color: #94a3b8;
    background-color: #f1f5f9;
}

/* Checked tooth status styling */
.tooth-checkbox:checked + .tooth-label {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Occlusal Plane Splitter Line */
.occlusal-plane-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.occlusal-plane-divider::before,
.occlusal-plane-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #cbd5e1;
}

.occlusal-plane-divider::before {
    margin-right: 1.5rem;
}

.occlusal-plane-divider::after {
    margin-left: 1.5rem;
}

.occlusal-plane-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-transform: uppercase;
}

/* ---- Palette & Typography Helpers ---- */
.text-slate-800 { color: #1e293b; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-xs { font-size: 0.75rem !important; }
.gap-x-4 { column-gap: 1.5rem !important; }

/* ---- Modern Inputs & Selectors ---- */
.form-select-modern,
.form-control-modern {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    color: #334155;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-select-modern:focus,
.form-control-modern:focus {
    background-color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: 0;
}

.btn-modern {
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* ---- Clean Modern Tables ---- */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.table-modern tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover td {
    background-color: #f8fafc;
}

/* ---- Action Buttons ---- */
.btn-action {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.btn-action:hover {
    background-color: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* ---- Badges & Details ---- */
.badge-mrn {
    background-color: #eff6ff;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    display: inline-block;
    letter-spacing: 0.02em;
}

.badge-tooth {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: inline-block;
}

.badge-treatment-paid {
    font-size: 0.75rem;
    font-weight: 700;
    color: #15803d;
    background-color: #f0fdf4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
    display: inline-block;
}

.badge-treatment-unpaid {
    font-size: 0.75rem;
    font-weight: 600;
    color: #b91c1c;
    background-color: #fef2f2;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #fecaca;
    display: inline-block;
}

/* Status Badges */
.status-badge-pending {
    background-color: #fef3c7 !important;
    color: #d97706 !important;
    border: 1px solid #fde68a;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge-ongoing {
    background-color: #ecfeff !important;
    color: #0891b2 !important;
    border: 1px solid #a5f3fc;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge-completed {
    background-color: #f0fdf4 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---- Form Fields styling overrides inside modern form container ---- */
.form-modern-container input[type="text"],
.form-modern-container input[type="email"],
.form-modern-container input[type="date"],
.form-modern-container input[type="number"],
.form-modern-container input[type="tel"],
.form-modern-container select,
.form-modern-container textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #334155;
    background-color: #f8fafc;
    background-clip: padding-box;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-modern-container input:focus,
.form-modern-container select:focus,
.form-modern-container textarea:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-modern-container textarea {
    min-height: 80px;
    resize: vertical;
}

.form-modern-container .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
}

.bg-light-modern {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.medical-history-banner {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
}




/*  dashboard css  */

/* ---- Palette & Typography Helpers ---- */
.text-slate-800 { color: #1e293b; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-xs { font-size: 0.75rem !important; }

/* ---- Modern Inputs & Selectors ---- */
.form-select-modern,
.form-control-modern {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    color: #334155;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-select-modern:focus,
.form-control-modern:focus {
    background-color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: 0;
}

.btn-modern {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* ---- Modern Dashboard Cards ---- */
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

.metric-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Accent Borders for Metric Cards */
.border-start-success { border-left: 4px solid #10b981 !important; }
.border-start-primary { border-left: 4px solid #3b82f6 !important; }
.border-start-info { border-left: 4px solid #06b6d4 !important; }

/* Icon Wrappers inside Metric Cards */
.metric-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: bold;
}

.bg-success-soft { background-color: #ecfdf5; }
.bg-primary-soft { background-color: #eff6ff; }
.bg-info-soft { background-color: #ecfeff; }

/* ---- Clean Modern Tables ---- */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.table-modern tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover td {
    background-color: #f8fafc;
}

/* Patient MRN Link styling */
.patient-mrn-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: #3b82f6;
    background-color: #eff6ff;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    align-self: start;
    transition: background-color 0.15s ease;
}

.patient-mrn-link:hover {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* Tooth Badge */
.badge-tooth {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: inline-block;
}


/* patient list */

/* ---- Background Helper ---- */
.bg-light-modern {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* ---- Input Group Alignment ---- */
.input-group > .form-control-modern {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .input-group-text {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

/* ---- MRN Badge Custom Styling ---- */
.badge-mrn {
    background-color: #eff6ff;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    display: inline-block;
    letter-spacing: 0.02em;
}

/* ---- Action Buttons ---- */
.btn-action {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.btn-action:hover {
    background-color: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

/*patient form*/

/* ---- Form Sectioning ---- */
.form-section-title {
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---- Input elements styling overrides inside modern form container ---- */
.form-modern-container input[type="text"],
.form-modern-container input[type="email"],
.form-modern-container input[type="date"],
.form-modern-container input[type="tel"],
.form-modern-container select,
.form-modern-container textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #334155;
    background-color: #f8fafc;
    background-clip: padding-box;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-modern-container input:focus,
.form-modern-container select:focus,
.form-modern-container textarea:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-modern-container textarea {
    min-height: 80px;
    resize: vertical;
}


/* patient summary */

/* ---- Medical Alert / History Callout ---- */
.medical-history-banner {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
}

/* ---- Horizontal Space Utility ---- */
.gap-x-4 {
    column-gap: 1.5rem !important;
}

/* ---- Treatment Payment Indicator Labels ---- */
.badge-treatment-paid {
    font-size: 0.75rem;
    font-weight: 700;
    color: #15803d;
    background-color: #f0fdf4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
    display: inline-block;
}

.badge-treatment-unpaid {
    font-size: 0.75rem;
    font-weight: 600;
    color: #b91c1c;
    background-color: #fef2f2;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #fecaca;
    display: inline-block;
}

/* Red soft wrapper background for outstanding KPI */
.bg-danger-soft {
    background-color: #fef2f2;
}

/* Orange/yellow soft wrapper background for alert KPI */
.bg-warning-soft {
    background-color: #fffbeb;
}

/* Soft left-border colors */
.border-start-warning {
    border-left: 4px solid #f59e0b !important;
}

.border-start-danger {
    border-left: 4px solid #ef4444 !important;
}

