/* Override Bootstrap's font stack so Inter applies everywhere */
:root {
    --bs-font-sans-serif: 'Inter', sans-serif;
    --bs-body-font-family: 'Inter', sans-serif;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body, input, button, select, textarea {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    margin-bottom: 60px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ═══════════════════════════════════════════════
    Lab Technician Component Styles
═══════════════════════════════════════════════ */

/* KPI Cards — feature-card style from Home */
.kpi-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 1px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: 0.4s;
    height: 100%;
}

    .kpi-card:hover {
        background: #fff;
        border-color: #e1e1e1;
        box-shadow: 0 20px 40px rgba(0,0,0,0.03);
        cursor: pointer;
    }

.kpi-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.kpi-blue, .kpi-green, .kpi-amber, .kpi-slate, .kpi-red, .kpi-dark {
    background: #fff;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
}

.kpi-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

/* Chart Cards */
.chart-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid #e1e1e1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.chart-card-header {
    padding: 0.8rem 1.125rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
}

.chart-card-body {
    padding: 1rem;
}

/* Dashboard Sections */
.dash-section {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid #e1e1e1;
    border-radius: 0;
    overflow: hidden;
    border-left-width: 1px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.accent-blue, .accent-green, .accent-amber, .accent-red, .accent-slate {
    border-left-color: #e1e1e1;
}

.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.125rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e1e1e1;
}

    .dash-section-header:hover {
        background: #f8fafc;
    }

.dash-section-title {
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-section-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dash-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.12rem 0.5rem;
    border-radius: 0;
}

.pill-blue, .pill-green, .pill-amber, .pill-red, .pill-slate {
    background: #f1f5f9;
    color: #475569;
}

.dash-chevron {
    font-size: 0.72rem;
    color: #94a3b8;
    transition: transform 0.2s;
}

.section-toggle[aria-expanded="false"] .dash-chevron {
    transform: rotate(-90deg);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.75rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

    .empty-state i {
        font-size: 1.4rem;
        opacity: 0.4;
    }

/* Card header color variants */
.ch-blue {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-bottom-color: #dbeafe !important;
}

.ch-green {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-bottom-color: #d1fae5 !important;
}

.ch-amber {
    background: #fffbeb !important;
    color: #d97706 !important;
    border-bottom-color: #fde68a !important;
}

.ch-slate {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom-color: #e2e8f0 !important;
}

.ch-danger {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-bottom-color: #fecaca !important;
}

/* Info grid (dl layout) */
.info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    font-size: 0.82rem;
}

    .info-grid dt {
        color: #64748b;
        font-weight: 500;
        white-space: nowrap;
    }

    .info-grid dd {
        margin: 0;
    }

/* Urgency badge variants */
.badge-urgency-stat, .badge-urgency-urgent, .badge-urgency-routine {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e1e1e1;
    font-weight: 600;
}

/* Filter bar */
.filter-bar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid #e1e1e1;
    border-radius: 0;
    padding: 0.6rem 0.875rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

/* Lab Tech table */
.lt-main .table {
    font-size: .92rem;
}

    .lt-main .table thead th {
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6c757d;
    }

/* Overrides for lab tech area */
.lt-main .btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    border-radius: 0 !important;
}

.lt-main .btn-sm {
    font-size: 0.84rem;
    border-radius: 0 !important;
}

.lt-main .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.lt-main .form-control, .lt-main .form-select {
    font-size: 0.82rem;
    border-radius: 0;
    border-color: #e1e1e1;
}

    .lt-main .form-control:focus, .lt-main .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    }

.lt-main .card {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid #e1e1e1 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.lt-main .card-header {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid #e1e1e1 !important;
    color: #0f172a !important;
    padding: 1rem 1.25rem;
}

/* ═══════════════════════════════════════════════
    Admin Component Styles
═══════════════════════════════════════════════ */

/* Global Overrides for Admin Area */
.admin-main .table {
    font-size: 0.92rem;
}

    .admin-main .table thead th {
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6c757d;
    }

.admin-main .btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    border-radius: 0 !important;
}

.admin-main .btn-sm {
    font-size: 0.84rem;
    border-radius: 0 !important;
}

.admin-main .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.admin-main .form-control, .admin-main .form-select {
    font-size: 0.82rem;
    border-radius: 0;
    border-color: #e1e1e1;
}

    .admin-main .form-control:focus, .admin-main .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    }

/* Card components within Admin Main */
.admin-main .card {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid #e1e1e1 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.admin-main .card-header {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid #e1e1e1 !important;
    color: #0f172a !important;
    padding: 1rem 1.25rem;
}

/* Admin specific accent features */
.admin-badge-role {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.5rem;
    border: 1px solid #e2e8f0;
}

/* ═══════════════════════════════════════════════
    Patient Component Styles
═══════════════════════════════════════════════ */

/* Global Overrides for Patient Area */
.patient-main .table {
    font-size: 0.92rem;
}

    .patient-main .table thead th {
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6c757d;
    }

.patient-main .btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    border-radius: 0 !important;
}

.patient-main .btn-sm {
    font-size: 0.84rem;
    border-radius: 0 !important;
}

.patient-main .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.patient-main .form-control, .patient-main .form-select {
    font-size: 0.82rem;
    border-radius: 0;
    border-color: #e1e1e1;
}

    .patient-main .form-control:focus, .patient-main .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    }

/* Card components within Patient Main */
.patient-main .card {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid #e1e1e1 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.patient-main .card-header {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid #e1e1e1 !important;
    color: #0f172a !important;
    padding: 1rem 1.25rem;
}

/* Patient Specific Health metrics & indicators */
.health-trend-up {
    color: #10b981;
    font-weight: 600;
}

.health-trend-down {
    color: #ef4444;
    font-weight: 600;
}

.patient-status-pill {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.15rem 0.6rem;
    border-radius: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
/* ═══════════════════════════════════════════════
   Doctor Portal — Badge Styles
═══════════════════════════════════════════════ */

/*Urgency Badges*/
.badge.badge-stat {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    font-weight: 500;
}

.badge.badge-urgent {
    background-color: #fff7ed !important;
    color: #ea580c !important;
    border: 1px solid #fed7aa;
}

.badge.badge-routine {
    background-color: #e2e8f0 !important;
    color: #334155 !important;
}

/* Status Workflow Badges */
.badge.badge-completed {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    font-weight: 500;
}

.badge.badge-inprogress {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    font-weight: 500;
}

/* Premium Medical Purple branding for Awaiting Release */
.badge.badge-awaiting-release {
    background-color: #f3e8ff !important;
    color: #6b21a8 !important;
    font-weight: 500;
}

/* Professional Soft Slate Design for Submitted status entries */
.badge.badge-submitted {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 500;
}

/* Interactive Dashboard Elevations */
.dashboard-stat-card {
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

    .dashboard-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    }


