/*region Navbar*/
    .navbar {
        padding-top: 5px;
        padding-bottom: 5px;
        background: white !important;
        height: 45px;
        margin-left: 210px;
    }
    body.layout-no-sidebar .navbar {
        margin-left: 0;
    }
    .navbar .nav-link {
        font-size: 1.8rem;
        color: #0a3882;
    }
    .navbar-brand {
        font-size: 2.3rem;
        font-weight: bold;
        color: #0a3882;
    }
    /* Logged-in layout: brand stays visible; menu control only on small screens */
    .navbar-brand.navbar-brand--with-sidebar {
        font-size: 1.35rem;
        margin-right: 0.5rem;
    }
    .sidebar-toggle-btn {
        display: none;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #0a3882;
        cursor: pointer;
        padding: 0 0.35rem;
        line-height: 1;
    }
    .sidebar-overlay {
        display: none;
    }
    @media (max-width: 767.98px) {
        .sidebar-toggle-btn {
            display: inline-flex;
        }
        .sidebar {
            transform: translateX(-100%);
            transition: transform 0.25s ease;
            z-index: 1050;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
        }
        .sidebar.sidebar-open {
            transform: translateX(0);
        }
        body.layout-with-sidebar .navbar {
            margin-left: 0;
        }
        .sidebar-overlay.active {
            display: block;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.35);
            z-index: 1040;
        }
    }
    .navbar-nav .nav-item {
        margin-right: 15px;
    }
    .nav-link:hover {
        color: black !important;
    }
    /*endregion*/
/*region Hero Image landing Page*/
.hero-landing {
    width: 100vw;
    position: relative;
    background-image: url('/img/Homepage-placeholder.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 60vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 120px 0;
    color: white;
}
.hero-landing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
}
.hero-landing .container {
    position: relative;
    z-index: 1;
}
/*endregion*/
/*region button*/
.button-group {
    display: flex;
    gap: 35px;
    padding: 40px;
    color: #0a3882;
}
.button {
    background-color: #0a3882;
    border: none;
}
/*endregion*/
.profile-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    border: 1px solid #0a3882;
    border-radius: 1.25rem;
    font-family: "Raleway", sans-serif;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Profile Page */
.profile-box h1,
.profile-box h2,
.profile-box h3,
.profile-box h4,
.profile-box h5 {
    color: #0a3882;
    font-family: "Raleway", sans-serif;
}

.profile-box .text-muted {
    color: #6b7280 !important;
}

.btn-primary {
    background-color: #0a3882;
    border-color: #0a3882;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #082f6f;
    border-color: #082f6f;
}

.btn-outline-primary {
    color: #0a3882;
    border-color: #0a3882;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #0a3882;
    border-color: #0a3882;
    color: #fff;
}
.contact{
    box-sizing: border-box;
    width: 40%;
    padding: 3.25rem 2.5rem;
    text-align: center;
    border: 1px solid #0a3882;
    border-radius: 1.25rem;
    font-family: "Raleway", sans-serif;
    display: grid;
    gap: 30px;
    justify-content: center;
}
.login{
    box-sizing: border-box;
    width: 40%;
    padding: 3.25rem 2.5rem;
    text-align: center;
    border: 1px solid #0a3882;
    border-radius: 1.25rem;
    font-family: "Raleway", sans-serif;
    display: grid;
    gap: 30px;
    justify-content: center;
}
.landing-card-icon{
    font-size: 2.75rem;
    line-height: 1;
    display: block;
    margin-bottom: 0.35rem;
}
/*region Patient Dashboard*/
/*Container For Whole Dashboard*/
.dashboard{
    width: 100%;
    padding: 3.25rem 2.5rem;
    text-align: center;
    border: 2px solid #0a3882;
    border-radius: 1.25rem;
    font-family: "Raleway", sans-serif;
    justify-content: center;
    background-color: white;
}

/*Dashboard Cards Header*/
.dashboard-card-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 1 / -1;
}
/*Main Dashboard Cards Titles*/
.dashboard-cards-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0a3882;
    text-align: left;
    padding-left: 2rem;
    /*border: 2px solid #0a3882;*/
}
/*Individual Cards Titles*/
.dashboard-card-title {
    margin: 0;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    /*line-height: 1.3;*/
    color: #0a3882;
    /*border: solid red;*/
    white-space: nowrap;
}
/*Container For Vital Information (Title and Cards) */
.dashboard-area{
    width: 100%;
    margin-bottom: 1rem;
    background: #f3f8ff;
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid #dbeafe;

}

/* region Vital metric cards */
.vital-metric-card{
    border-radius: 1.25rem;
}
.vital-metric-label{
    font-size: 1.3rem;
    font-weight: 600;
    color: #0a3882;
    line-height: 1.2;
}
.vital-metric-value{
    font-size: 2.4rem;
    font-weight: 700;
    color: #123;
    letter-spacing: -0.02em;
}
.vital-metric-unit{
    font-size: 1.2rem;
    font-weight: 600;
    color: #6b7280;
}
.vital-metric-time{
    font-size: 1.1rem;
    color: #6b7280;
    white-space: nowrap;
    margin-left: 1rem;
}
.vital-metric-badge{
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
}
.vital-metric-icon{
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex: 0 0 auto;
}
.vital-metric-icon--amber{ background: #fff7ed; color: #c2410c; }
.vital-metric-icon--pink{ background: #fdf2f8; color: #be185d; }
.vital-metric-icon--blue{ background: #eff6ff; color: #2563eb; }
.vital-metric-icon--red{ background: #fef2f2; color: #dc2626; }
/*endregion*/


/*Dashboard Card Descriptions*/
.dashboard-card-desc {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
    color: #666;
}
/*Vital Cards Readings*/
.dashboard-card-vital-reading {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
    color: #666;
}
/*Log Vital Button*/
.vital-button{
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 2rem;
    text-decoration: none;
    color: #0a3882;
    font-weight: bold;
}
.status-text{
    margin: 0.1rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}
.dashboard-card-vital-status.normal{
    background-color: lawngreen;
    border-radius: 0.5rem;
    display: flex;
}
.dashboard-card-vital-status.warning{
    background-color: yellow;
}
.dashboard-card-vital-status.critical{
    background-color: darkred;
}
.dashboard-card-vital-time{
    /*border: solid red;*/
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin: 0;
}
/*endregion*/

/* region Sidebar*/
.sidebar{
    background-color: white;
    width: 210px;
    min-height: 100vh;
    padding-left: 1rem;
    top: 0;
    left: 0;
    position: fixed;
}
.sidebar-title{
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.7;
    color: #0a3882;
    margin-top: 2rem;
}
.sidebar .nav-link{
    color: #0a3882;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 3px;
    transition: all 0.2s ease;
    font-size: 1.4rem;
}
/*endregion*/

/*region about us*/
.about-card{
    width: 80%;
    border: solid #0a3882;
    border-radius: 15px;
    background-color: white;
    padding-top: 1rem;
    padding-bottom: 1rem;

}
.about-card .desc{
    font-size: 14px;
    margin-bottom: 15px;
}
.about-card .title{
    font-weight: bold;

}
.about-image{
    width: 400px;
}
/*endregion*/
/* region footer */
.site-footer {
    margin-left: 210px;
    background-color: #0a3882;
    color: #fff;
    font-family: "Raleway", sans-serif;
}
body.layout-no-sidebar .site-footer {
    margin-left: 0;
}
.site-footer-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}
.site-footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
    margin: 0 0 0.65rem;
    color: #fff;
}
.site-footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.site-footer-link:hover {
    color: #fff;
    text-decoration: underline;
}
.site-footer-bottom {
    max-width: 100%;
}
/*endregion*/

.time-slot.selected {
    background-color: #0d6efd;
    color: white;
}
.bookings h1{
    text-align: center;
    padding: 1rem;
}
.no-booking {
    /*style="max-width: 360px; font-size: 16px"*/
    max-width: 360px;
    font-size: 16px;
    font-weight: bold;
}

/*region Patient dashboard (Respira UI — aligns with clinician dashboard) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Replace default beige main background on patient dashboard only */
.main:has(.patient-dashboard) {
    background: #eef1f5 !important;
}

.patient-dashboard {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: #0a3882;
}

.patient-dashboard .pd-page-title {
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    color: #0a3882;
}

.patient-dashboard .pd-page-subtitle {
    font-size: 1.15rem;
    color: #5a6478;
    line-height: 1.45;
}

.patient-dashboard .pd-btn-primary {
    background: #0a3882;
    border-color: #0a3882;
    color: #fff;
    font-weight: 600;
}

.patient-dashboard .pd-btn-primary:hover {
    background: #072f6e;
    border-color: #072f6e;
    color: #fff;
}

.patient-dashboard .pd-btn-outline {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #0a3882;
    font-weight: 600;
}

.patient-dashboard .pd-btn-outline:hover {
    background: #f7f8fa;
    border-color: #9aa3b4;
    color: #0a3882;
}

.patient-dashboard .pd-panel {
    border: 1px solid #e8eaef;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
}

.patient-dashboard .pd-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1.25rem;
    background: #0a3882;
    border-radius: 0.875rem 0.875rem 0 0;
}

.patient-dashboard .pd-panel-head h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.patient-dashboard .pd-panel-head-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

.patient-dashboard a.pd-panel-head-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    white-space: nowrap;
}

.patient-dashboard a.pd-panel-head-link:hover {
    color: #fff;
    text-decoration: underline;
}

.patient-dashboard .pd-table-wrap {
    overflow-x: auto;
}

.patient-dashboard .pd-table {
    font-size: 0.95rem;
}

.patient-dashboard .pd-table thead th {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #9aa3b4;
    background: #f7f8fa;
    border-bottom: 1px solid #e8eaef;
    padding: 0.65rem 1rem;
}

.patient-dashboard .pd-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e8eaef;
    vertical-align: middle;
}

.patient-dashboard .pd-table tbody tr:last-child td {
    border-bottom: none;
}

.patient-dashboard .pd-table-note {
    padding: 1rem 1.25rem 1.25rem;
    font-size: 0.88rem;
    color: #5a6478;
    line-height: 1.5;
    background: #fafbfc;
    border-top: 1px solid #e8eaef;
}

/* Top vitals row — same visual language as clinician stat cards */
.patient-dashboard .pd-top-card {
    padding: 1rem 1.15rem;
    border: 1px solid #e8eaef;
    border-radius: 1rem;
    background: #fff;
    height: 100%;
}

.patient-dashboard .pd-top-card-kicker {
    font-size: clamp(0.85rem, 1.05vw, 1.05rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #5a6478;
    margin-bottom: 0.45rem;
    /* Keep headings consistent across cards (e.g. "Oxygen saturation") */
    white-space: nowrap;
}

.patient-dashboard .pd-top-card-num {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.45rem;
    color: #0a3882;
}

.patient-dashboard .pd-top-card-num--bp {
    font-size: 2rem;
    font-weight: 700;
}

.patient-dashboard .pd-top-card-num--critical {
    color: #e05252;
}

.patient-dashboard .pd-top-card-num--warning {
    color: #c9780a;
}

.patient-dashboard .pd-top-card-unit {
    font-size: 1rem;
    color: #5a6478;
    font-weight: 600;
}

.patient-dashboard .pd-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
}

.patient-dashboard .pd-badge--normal {
    background: #e8eef7;
    color: #0a3882;
}

.patient-dashboard .pd-badge--warning {
    background: #fef8ed;
    color: #c9780a;
}

.patient-dashboard .pd-badge--critical {
    background: #fdf0f0;
    color: #e05252;
}

.patient-dashboard .pd-badge--none {
    background: #f0f2f5;
    color: #9aa3b4;
}

.patient-dashboard .pd-panel-empty {
    padding: 1.5rem 1.25rem;
    font-size: 0.95rem;
    color: #5a6478;
    line-height: 1.5;
}

.patient-dashboard .pd-panel-empty a,
.patient-dashboard a.pd-inline-link {
    color: #0a3882;
    font-weight: 600;
    text-decoration: none;
}

.patient-dashboard .pd-panel-empty a:hover,
.patient-dashboard a.pd-inline-link:hover {
    text-decoration: underline;
}

/* Upcoming appointments list: avoid "squished" layout */
.patient-dashboard .pd-booking-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    align-items: start;
}

.patient-dashboard .pd-booking-actions {
    white-space: nowrap;
    justify-self: end;
}

.patient-dashboard .pd-booking-clinician {
    white-space: nowrap;
    display: inline-block;
}

/* Keep the appointments list comfortably inside the card */
.patient-dashboard .pd-panel .list-group.px-3 {
    padding-top: 0.25rem;
}

@media (max-width: 420px) {
    .patient-dashboard .pd-booking-row {
        grid-template-columns: 1fr;
    }

    .patient-dashboard .pd-booking-actions {
        justify-self: start;
    }
}

/* DataTables — keep length/search/pagination proportional (overrides large site typography) */
.patient-dashboard .dataTables_wrapper {
    font-size: 0.875rem;
}

.patient-dashboard .dataTables_wrapper .dataTables_length,
.patient-dashboard .dataTables_wrapper .dataTables_filter,
.patient-dashboard .dataTables_wrapper .dataTables_info,
.patient-dashboard .dataTables_wrapper .dataTables_paginate {
    font-size: 0.875rem;
    line-height: 1.4;
}

.patient-dashboard .dataTables_wrapper .dataTables_length label,
.patient-dashboard .dataTables_wrapper .dataTables_filter label {
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.patient-dashboard .dataTables_wrapper .dataTables_length select {
    font-size: 0.875rem;
    padding: 0.2rem 2rem 0.2rem 0.45rem;
    height: auto;
    min-height: 2rem;
    width: auto;
    max-width: 5.5rem;
}

.patient-dashboard .dataTables_wrapper .dataTables_filter input {
    font-size: 0.875rem;
    padding: 0.2rem 0.45rem;
    margin-left: 0.35rem;
    width: 11rem;
    max-width: 100%;
    min-height: 2rem;
    line-height: 1.4;
}

.patient-dashboard .dataTables_wrapper .dataTables_paginate {
    margin-top: 0.35rem;
}

.patient-dashboard .dataTables_wrapper .dataTables_paginate .pagination {
    margin-bottom: 0;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.patient-dashboard .dataTables_wrapper .dataTables_paginate .page-link {
    font-size: 0.875rem;
    padding: 0.2rem 0.5rem;
    line-height: 1.35;
}

.patient-dashboard .dataTables_wrapper .dataTables_info {
    padding-top: 0.5rem;
}

.patient-dashboard .dataTables_wrapper .row {
    margin-bottom: 0.35rem;
}
/*endregion*/

