/* ----- UNIVERSAL ---- */
:root {
    font-family: Arial, sans-serif;
}

.container {
    max-width: 100% !important;
    width: 100%;
    padding: 0 !important;
    margin-bottom: 100px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

footer {
    background: white;
}

#footer-1147 .cs-container {
    min-width: 95%;
    max-width: 95%;
}

/* Footer for Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #footer-1147 {
        padding: 1rem 0;
        position: relative;
        z-index: 1;
    }
    #footer-1147 .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #footer-1147 .cs-top {
        width: 100%;
        /* 32px - 40px */
        margin-bottom: clamp(2rem, 4vw, 2.5rem);
        padding-bottom: clamp(2rem, 4vw, 2.5rem);
        border-bottom: 1px solid #484848;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    #footer-1147 .cs-ul {
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        row-gap: 0.5rem;
        /* 28px - 40px */
        column-gap: clamp(1.75rem, 4vw, 2.5rem);
    }
    #footer-1147 .cs-li {
        list-style: none;
    }
    #footer-1147 .cs-link {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        line-height: 1.5em;
        text-decoration: none;
        margin: 0;
        color: #bababa;
        display: block;
        transition: color 0.3s;
    }
    #footer-1147 .cs-link:hover {
        color: var(--secondary);
    }
    #footer-1147 .cs-logo {
        width: 10.5rem;
        height: auto;
        display: block;
    }
    #footer-1147 .cs-logo-img {
        width: 100%;
        height: auto;
        display: block;
    }
    #footer-1147 .cs-bottom {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    #footer-1147 .cs-social {
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
    #footer-1147 .cs-social-li {
        list-style: none;
    }
    #footer-1147 .cs-social-link {
        width: 2rem;
        height: 2rem;
        background-color: #484848;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s;
    }
    #footer-1147 .cs-social-link:hover {
        background-color: var(--secondary);
    }
    #footer-1147 .cs-social-link:hover .cs-social-icon {
        filter: grayscale(1) brightness(0);
        opacity: 1;
    }
    #footer-1147 .cs-social-icon {
        width: 0.75rem;
        height: auto;
        display: block;
        opacity: 0.5;
    }
    #footer-1147 .cs-copyright {
        font-size: 1rem;
        line-height: 1.5em;
        margin: 0;
        color: #bababa;
        display: block;
    }
    #footer-1147 .cs-copyright-link {
        font-size: inherit;
        text-decoration: none;
        color: inherit;
        transition: color 0.3s;
    }
    #footer-1147 .cs-copyright-link:hover {
        color: var(--secondary);
    }
    #footer-1147 .cs-background {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    #footer-1147 .cs-background:before {
        /* background color overlay */
        content: "";
        position: absolute;
        display: block;
        height: 100%;
        width: 100%;
        background: #1a1a1a;
        opacity: 0.96;
        top: 0;
        left: 0;
        z-index: 1;
    }
    #footer-1147 .cs-background img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        /* Makes img tag act as a background image */
        object-fit: cover;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #footer-1147 .cs-top {
        flex-direction: row;
        justify-content: space-between;
    }
    #footer-1147 .cs-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
/* ----- UNIVERSAL END ---- */

/* ----- ACTION BUTTONS ---- */
.btn {
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;

    text-decoration: none !important;

    line-height: 1;
    white-space: nowrap;

    border: 1px solid transparent;
    cursor: pointer;
}

/* PRIMARY BUTTON */
.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #357ac9;
    color: white;
}

/* SECONDARY BUTTON */
.btn-secondary {
    color: #4a90e2;
}

/* ACTION BUTTONS */
.btn-view {
    background: #e0e7ff;
    color: #1e40af;
}

.btn-edit {
    background: #fef3c7;
    color: #92400e;
}

.btn-confirm {
    background: #bfffc7;
    color: #166534;
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}
/* ----- ACTION BUTTONS END ---- */

/* ----- NAVIGATION BAR ---- */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.navbar-container {
    max-width: 95%;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-brand a {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    color: #222;
}

.navbar-brand span {
    color: #4a90e2;
}

.navbar-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar-links a {
    text-decoration: none;
    color: #444;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.navbar-links a:hover {
    background: #f2f6ff;
    color: #4a90e2;
}

.nav-login-btn {
    background: #4a90e2;
    color: white !important;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s ease;
}

.nav-login-btn:hover {
    background: #357ac9 !important;
    color: white !important;
    transform: translateY(-1px);
}

.nav-logout-btn {
    background: #d9534f;
    color: white !important;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s ease;
}

.nav-logout-btn:hover {
    background: #d9534f !important;
    color: white !important;
    transform: translateY(-1px);
}

.nav-toggle-label {
    display: none;
    font-size: 26px;
    cursor: pointer;
}


.nav_mobile-toggle {
    display: none;
}

.nav_mobile-toggle-label {
    display: none;
}

.navbar-container {
    position: relative;
}

@media (min-width: 769px) {
    .navbar-links {
        display: flex !important;
    }
}

@media (max-width: 768px) {

    .navbar-container {
        position: relative;
    }

    /* show hamburger */
    .nav_mobile-toggle-label {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #222;
    }

    /* mobile dropdown */
    .navbar-links {

        /* IMPORTANT */
        display: none;

        position: absolute;
        top: 64px;
        left: 0;
        right: 0;

        background: white;
        border-bottom: 1px solid #eee;

        flex-direction: column;
        align-items: flex-start;

        padding: 10px 20px;
        gap: 0;

        z-index: 1000;
    }

    /* THIS is the key */
    .nav_mobile-toggle:checked ~ .navbar-links {
        display: flex;
    }

    .navbar-links a,
    .navbar-links .nav-login-btn,
    .navbar-links .nav-logout-btn {
        width: 100%;
        padding: 12px 0;
        border-radius: 0;
    }

    .hide-mobile {
        display: none;
    }
}
/* ----- NAVIGATION BAR END ----- */

/* ----- AUTHENTICATION PAGES ----- */
.auth-page {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.auth-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: bold;
}

.flash {
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #444;
}

.form-group input {
    width: 90%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus {
    border-color: #4a90e2;
}

.btn-auth {
    width: 100%;
    padding: 11px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-auth:hover {
    background: #357ac9;
}

.auth-links {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
}

.auth-links a {
    color: #4a90e2;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.turnstile {
    display: flex;
    justify-content: center;
    margin: 14px 0;
}
/* ----- AUTHENTICATION PAGES END ----- */

/* ----- DASHBOARD ----- */
.dashboard {
    padding: 40px;
}

/* Welcome header */
.dashboard-header {
    margin-bottom: 25px;
}

/* KPI cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.kpi-card {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.kpi-card-patient {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid white;
}

.kpi-card-patient:hover {
    border: 2px solid #999999;

}

.kpi-title {
    font-size: 13px;
    color: #666;
}

.kpi-value {
    font-size: 24px;
    font-weight: bold;
}

/* Section cards */
.section {
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-align: left;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.alert-summary-card {
    border-left: 5px solid #d93025;
}

.alert-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.alert-badge {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #d93025;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.alert-preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.alert-preview-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.alert-feed-card {
    background: #fff;
    border-left: 5px solid #d93025;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 18px;
}

.alert-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #666;
    font-size: 14px;
    margin: 8px 0;
}

.alert-feed-reason {
    margin: 10px 0 0;
}

.clinician-dashboard .assign-row {
    flex-direction: column;
}

.clinician-dashboard .assign-column,
.clinician-dashboard .column {
    width: 100%;
}

/* ----- DASHBOARD END ----- */

/* ----- ANALYTICS ----- */
.chart-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1000px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.chart-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
}

.chart-container {
    position: relative;
    height: 400px; /* important for Chart.js responsiveness */
}
/* ----- ANALYTICS END ----- */

/* ----- FAQ ----- */
.faq-page {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.faq-header {
    text-align: center;
    margin-bottom: 25px;
}

.faq-header h2 {
    margin-bottom: 8px;
}

/* FAQ cards */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.15s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

/* Category badge */
.faq-category {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1e40af;
    margin-bottom: 8px;
}

/* Question */
.faq-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Filters */
.faq-search form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* CakePHP wrapper fix */
.faq-search .input {
    margin: 0;
    flex: 1;
    min-width: 220px;
}

/* Make inputs full width inside wrapper */
.faq-search input,
.faq-search select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
/* ----- FAQ END ----- */

/* ----- CONTENT ----- */
.content-page {
    padding: 40px;
}

.page-title {
    font-size: 26px;
    margin-bottom: 20px;
}

.page-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title-wrapper h3 {
    margin: 0;
    font-size: 48px;
    font-weight: bold;
}

/* Grid layout */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* Card design */
.content-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.card-title {
    font-size: 24px;
    margin: 0;
}

/* Type badge */
.content-badge {
    background: lightslategray;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 50px;
}
/* ----- CONTENT END ----- */

/* ----- VIEW ----- */
.column-60 {
    flex: 0 0 60%;
}

.column-20 {
    flex: 0 0 20%;
}

.page-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.page-title span {
    color: #777;
    font-weight: normal;
    font-size: 16px;
}

/* Table improvement (still CakePHP style) */
.cake-view-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.cake-view-table th,
.cake-view-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eaeaea;
    text-align: left;
}

.cake-view-table th {
    width: 30%;
    color: #555;
    font-weight: 600;
    background: #fafafa;
}

/* Hover effect (subtle, CakePHP-like) */
.cake-view-table tr:hover td {
    background: #f9fbff;
}

/* Sidebar links refinement */
.side-nav-item {
    display: block;
    padding: 8px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    color: #2c3e50;
    text-decoration: none;
}

.side-nav-item:hover {
    background: #eef3f8;
}

/* Role badge (simple Cake-style enhancement) */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    color: #fff;
}

.role-admin {
    background: #dc3545;
}

.role-clinician {
    background: #007bff;
}

.role-patient {
    background: #28a745;
}

.row {
    display: flex;
    gap: 16px; /* space between boxes */
    padding-left: 2%;
    padding-right: 2%;
}

.rowt {
    display: flex;
    justify-content: space-between; /* pushes items apart */
    align-items: center;            /* vertical alignment */
}

.box {
    flex: 1; /* makes both equal width */
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.table-container {
    max-height: 400px;   /* makes it scrollable */
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.view-table {
    width: 100%;
    border-collapse: collapse;
}

.view-table th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.view-table tr:hover {
    background: #f9f9f9;
}

.details {
    display: none;
    background: #f4f6f8;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: #f5f5f5;
}
/* ----- VIEW END ----- */

/* ----- TABLE ----- */
.table-page {
    padding: 40px;
}

/* HEADER */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-header h3 {
    margin: 0;
    font-size: 48px;
    font-weight: bold;
}

/* TABLE CONTAINER */
.table-responsive {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    overflow-x: auto;
    padding: 8px 12px;
}

.table-page table thead th a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
}

.table-page table thead th a:hover {
    color: var(--primary);
}

.table-page table thead th {
    text-align: left;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
}

th:first-child,
td:first-child {
    padding-left: 20px;
}

th:last-child,
td:last-child {
    padding-right: 20px;
}

.table-filters {
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input,
.filter-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.filter-date {
    padding: 6px 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
}

/* ROW HOVER */
tbody tr:hover {
    background: #f9fafb;
}

/* Filters */
.table-filters {
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group .input {
    margin: 0;
}

.filter-input {
    min-width: 500px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.filter-select {
    padding: 6px 50px 6px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.morning { background: #e0f2fe; color: #0369a1; }
.afternoon_1 { background: #fef3c7; color: #92400e; }
.afternoon_2 { background: #fde68a; color: #92400e; }
.evening { background: #e9d5ff; color: #6b21a8; }
.other { background: #e5e7eb; color: #374151; }

/* ALERT BADGES */
.badge-danger {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 8px;
    border-radius: 999px;
}

.badge-safe {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 999px;
}
/* ----- TABLE END ----- */

/* ----- FORM ----- */
/* Page spacing */
.page-container {
    padding: 3%;
    background: #f6f8fb;
    min-height: 100vh;
}

/* Form Card */
.form-wrapper {
    margin: 0 auto;   /* centers the form */
    width: 100%;
}

.form-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e6e8ec;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Header */
.form-header h2 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}

.form-header p {
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
}

/* Form fields */
.form-fieldset {
    border: none;
    padding: 0;
    margin-top: 20px;
}

.form-input {
    width: 97%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 14px;
}

.form-select {
    max-width: 12%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 14px;
}

.form-date {
    max-width: 15%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 14px;
}

.form-check {
    max-width: 1%;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {

    .form-wrapper {
        margin: 0 auto;
        margin-left: 10%;
    }

    .page-container {
        width: 100%;
        margin: 0 auto;
    }
    .form-input {
        width: 50%;
    }
}

.form-input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Button */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/*-- -------------------------- -->
<---          Contact           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #contact-2320 {
        padding: var(--sectionPadding);
        display: flex;
        flex-direction: column;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
        position: relative;
        z-index: 1;
    }
    #contact-2320 .cs-container {
        width: 100%;
        /* changes to 1280px at desktop */
        max-width: 36.25rem;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
    }
    #contact-2320 .cs-container2 {
        width: 100%;
        /* changes to 1280px at desktop */
        max-width: 36.25rem;
        padding: 5rem 3rem;
        margin: auto;
        position: relative;
        z-index: 1;
    }
    #contact-2320 .cs-container2 .cs-topper {
        color: #fff;
    }
    #contact-2320 .cs-content {
        text-align: left;
    }
    #contact-2320 .cs-title {
        margin-bottom: 2rem;
    }
    #contact-2320 .cs-form {
        border-radius: 1rem;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }
    #contact-2320 .cs-label {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        width: 100%;
        color: var(--headerColor);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0.25rem;
    }
    #contact-2320 .cs-input {
        font-size: 1rem;
        width: 100%;
        height: 3.5rem;
        padding: 0;
        padding-left: 1.5rem;
        color: var(--headerColor);
        background-color: #f7f7f7;
        border: none;
        /* prevents padding from adding to height and width */
        box-sizing: border-box;
    }
    #contact-2320 .cs-input::placeholder {
        color: #7d799c;
        opacity: 0.6;
    }
    #contact-2320 .cs-textarea {
        min-height: 7.5rem;
        padding-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-family: inherit;
    }
    #contact-2320 .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: #fff;
        padding: 0 1.5rem;
        background-color: var(--primary);
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
    }
    #contact-2320 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }
    #contact-2320 .cs-button-solid:hover:before {
        width: 100%;
    }
    #contact-2320 .cs-submit {
        text-transform: uppercase;
        background-color: var(--secondaryLight);
        color: var(--headerColor);
        border: none;
        transition: color 0.3s;
    }
    #contact-2320 .cs-submit:hover {
        cursor: pointer;
        color: #fff;
    }
    #contact-2320 .cs-map {
        width: 100%;
        max-width: 39.375rem;
        height: 25rem;
        position: relative;
        z-index: 1;
        display: block;
    }
    #contact-2320 .cs-iframe-wrapper {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        /* 40px - 56px */
        bottom: clamp(2.5rem, 5vw, 3.5rem);
    }
    #contact-2320 .cs-iframe-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    #contact-2320 .cs-box {
        width: 90%;
        max-width: 28.125rem;
        /* 16px - 32px top & bottom */
        /* 16px left & right */
        padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 2.4vw, 1rem);
        background-color: #fff;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }
    #contact-2320 .cs-box:before {
        content: '';
        width: 100%;
        height: 100%;
        background: var(--primary);
        pointer-events: none;
        opacity: 0.1;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    #contact-2320 .cs-icon {
        width: 2rem;
        height: auto;
        display: block;
    }
    #contact-2320 .cs-flex {
        display: flex;
        flex-direction: column;
    }
    #contact-2320 .cs-header {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.2em;
        margin: 0 0 0.5rem;
        color: var(--headerColor);
    }
    #contact-2320 .cs-address {
        font-size: clamp(0.75rem, 2.8vw, 1rem);
        line-height: 1.5em;
        margin: 0;
        color: var(--bodyTextColor);
    }
    #contact-2320 .cs-hours {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #contact-2320 .cs-hours-info {
        /* 20px - 25px */
        font-size: clamp(1.25rem, 3vw, 1.5625rem);
        line-height: 1.2em;
        font-weight: 700;
        width: 60%;
        max-width: 28ch;
        margin: 0;
        color: var(--bodyTextColorWhite);
    }
    #contact-2320 .cs-background {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    #contact-2320 .cs-background:before {
        /* background color overlay */
        content: '';
        position: absolute;
        display: block;
        height: 100%;
        width: 100%;
        background: #000;
        opacity: 0.72;
        top: 0;
        left: 0;
        z-index: 1;
    }
    #contact-2320 .cs-background img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        /* Makes img tag act as a background image */
        object-fit: cover;
    }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #contact-2320 .cs-container {
        max-width: 80rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: 3.25rem;
    }
    #contact-2320 .cs-container2 {
        max-width: 80rem;
    }
    #contact-2320 .cs-content {
        max-width: 32.625rem;
        /* 24px - 80px */
        padding: clamp(2rem, 5vw, 5rem) 0;
    }
    #contact-2320 .cs-title,
    #contact-2320 .cs-topper,
    #contact-2320 .cs-text {
        text-align: left;
        margin-left: 0;
    }
    #contact-2320 .cs-title {
        max-width: 32.625rem;
    }
    #contact-2320 .cs-services,
    #contact-2320 .cs-phone {
        width: 47%;
    }
    #contact-2320 .cs-button-solid {
        margin-left: 0;
    }
    #contact-2320 .cs-map {
        max-width: 39.375rem;
        height: auto;
        order: -1;
    }
}

    .paginator .pagination li a {
        display: inline-block;
        padding: 6px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        text-decoration: none;
        color: var(--primary);
        cursor: pointer;
    }

    .paginator .pagination li a:hover {
        background-color: var(--primary);
        color: white;
    }

    .paginator .pagination li.active a {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .paginator .pagination li.disabled a {
        color: #aaa;
        pointer-events: none;
        cursor: default;
    }

    .assign-row {
         display: flex;
         gap: 2rem;
         align-items: flex-start;
         margin-top: 1.5rem;
     }

    .assign-column {
        flex: 1;
        min-width: 0;
    }

    .card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .patient-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        font-size: 0.95rem;
    }

    .patient-label input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        accent-color: var(--primary);
        cursor: pointer;
    }

    /* Type options */
    .type-options {
        margin-top: 0.75rem;
    }

    .radio-group {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .radio {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.9rem;
        cursor: pointer;
    }

    .radio input[type="radio"] {
        accent-color: var(--primary);
    }

    /* Date range */
    .date-range {
        display: flex;
        gap: 0.75rem;
    }

    .date-range input[type="date"] {
        flex: 1;
        padding: 0.4rem 0.75rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 0.875rem;
        color: #1a1a1a;
    }

    /* Muted text */
    .muted-text {
        color: #999;
        font-size: 0.875rem;
    }

    /* Form actions */
    .form-actions {
        margin-top: 1rem;
    }

    .full-width {
        width: 100%;
    }

.schedule-grid {
    display: flex;
    gap: 20px;
}


.assign-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.assign-column {
    flex: 1;
    min-width: 0;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.patient-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.patient-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Type options */
.type-options {
    margin-top: 0.75rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.radio {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.radio input[type="radio"] {
    accent-color: var(--primary);
}

/* Date range */
.date-range {
    display: flex;
    gap: 0.75rem;
}

.date-range input[type="date"] {
    flex: 1;
    padding: 0.4rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1a1a1a;
}

/* Muted text */
.muted-text {
    color: #999;
    font-size: 0.875rem;
}

/* Form actions */
.form-actions {
    margin-top: 1rem;
}

.full-width {
    width: 100%;
}

.left-panel {
    width: 40%;
}

.right-panel {
    width: 60%;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
}

.day-info {
    display: flex;
    flex-direction: column;
}

.day-row:last-child {
    border-bottom: none;
}

.off {
    color: #999;
}

.day-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
}

.day-info {
    display: flex;
    flex-direction: column;
}

.day-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.day-time {
    color: #666;
    font-size: 14px;
}

.day-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.day-action {
    display: flex;
    gap: 8px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

#cancelModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-content textarea {
    width: 100%;
    box-sizing: border-box;
}
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: transparent;
    border: none;
    color: #1f2937; /* dark text */
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    line-height: 1;
}

.nav-dropdown-btn:hover {
    color: #2563eb;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 220px;
    background: #ffffff;

    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 8px 24px rgba(0,0,0,0.12);

    z-index: 999;

    border: 1px solid #e5e7eb;
}

.nav-dropdown-content a {
    display: block;
    padding: 12px 16px;

    color: #1f2937;
    text-decoration: none;
    font-size: 0.95rem;

    white-space: nowrap;
}

.nav-dropdown-content a:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    margin-left: auto;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: #000;
}

/* mobile */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
    }

    .navbar-links.active {
        display: flex;
    }
}
.invoice-page {
    min-height: 100vh;
    font-family: Georgia, 'Times New Roman', serif;
}

.invoice-paper {
    background: #ffffff;
    max-width: 720px;
    min-height: 267mm;
    margin: 0 auto;
    padding: 4rem 5rem;
    border: 0.5px solid #d3d1c7;
    box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}

.invoice-page .table-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* --- Letterhead --- */
.letterhead {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 2.5rem;
}

.letterhead-brand {
    font-family: 'Georgia', serif;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.letterhead-brand span {
    color: #0f6e56;
}

.letterhead-meta {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #5f5e5a;
    line-height: 1.8;
}

.letterhead-meta strong {
    font-size: 16px;
    color: #1a1a1a;
    display: block;
    margin-bottom: 2px;
}

/* --- Address block --- */
.address-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 2rem;
}

.address-block {
    font-size: 13px;
    line-height: 1.9;
    color: #444441;
}

.address-block .label {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888780;
    margin-bottom: 6px;
}

.address-block strong {
    font-size: 14px;
    color: #1a1a1a;
    display: block;
}

/* --- Salutation & body --- */
.letter-body {
    font-size: 15px;
    line-height: 1.8;
    color: #2c2c2a;
    margin-bottom: 2.5rem;
}

/* --- Invoice table --- */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 14px;
}

.invoice-table thead tr {
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.invoice-table thead th {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #5f5e5a;
    padding: 10px 0;
    text-align: left;
    font-weight: normal;
}

.invoice-table thead th:last-child,
.invoice-table tbody td:last-child,
.invoice-table tfoot td:last-child {
    text-align: right;
}

.invoice-table tbody td {
    padding: 14px 0;
    color: #2c2c2a;
    border-bottom: 0.5px solid #d3d1c7;
}

.invoice-table tfoot {
    border-top: 2px solid #1a1a1a;
}

.invoice-table tfoot td {
    padding: 12px 0;
    font-size: 15px;
    font-weight: bold;
    color: #1a1a1a;
}

/* --- Due date badge --- */
.due-block {
    background: #e1f5ee;
    border-left: 3px solid #0f6e56;
    padding: 12px 16px;
    margin: 1.5rem 0 2.5rem;
    font-size: 13px;
    color: #085041;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.due-block strong {
    font-size: 15px;
}

/* --- Status badge --- */
.status-badge {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.status-issued   { background: #e6f1fb; color: #0c447c; }
.status-paid     { background: #eaf3de; color: #27500a; }
.status-overdue  { background: #fcebeb; color: #791f1f; }

/* --- Sign-off --- */
.sign-off {
    margin-top: 3rem;
    font-size: 15px;
    line-height: 1.9;
    color: #2c2c2a;
    border-top: 0.5px solid #d3d1c7;
    padding-top: 2rem;
}

.sign-off-brand {
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: bold;
    color: #0f6e56;
    margin-top: 0.5rem;
}

/* --- Print / download button --- */

.btn-print {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.btn-back {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .invoice-paper, .invoice-paper * {
        visibility: visible !important;
    }

    .invoice-paper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}
/* ----- FORM END ----- */

/* Paginator layout */
.paginator {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center
}

/* Remove bullet points and stack horizontally */
.pagination {
    display: flex;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center
}

/* Individual page items */
.page-item {
    display: inline-flex;
}

/* Links */
.page-link {
    padding: 0.4rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.page-link:hover {
    background: #f3f4f6;
}

/* Active page */
.page-item.active .page-link {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Disabled buttons */
.page-item.disabled .page-link {
    color: #aaa;
    cursor: not-allowed;
    background: #f9fafb;
}

/* Counter text */
.pagination-counter {
    font-size: 0.85rem;
    color: #666;
}
/* =========================
   FLASH MESSAGES
========================= */

.message {
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    animation: fadeIn 0.25s ease;
}

/* SUCCESS */
.message.success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

/* ERROR */
.message.error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

/* WARNING */
.message.warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

/* INFO */
.message.info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Optional close spacing */
.message p {
    margin: 0;
}

/* Smooth appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   HEALTH SUBMISSION FORM
========================= */

/* Form labels */
.modern-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Inputs + selects + textarea */
.modern-form input,
.modern-form select,
.modern-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 18px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #fff;
    color: #111827;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;

    box-sizing: border-box;
}

/* Focus state (same as calendar style) */
.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
    background: #f9fcff;
}

/* Highlight selected date in calendar popup */
.modern-form input[type="date"]::-webkit-datetime-edit {
    color: #111827;
}

.modern-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* BP row layout */
.bp-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.bp-row > div {
    flex: 1;
    min-width: 220px;
}

/* Small helper text */
.field-helper {
    margin-top: -12px;
    margin-bottom: 14px;

    font-size: 12px;
    color: #6b7280;
}

/* Section headings */
.form-fieldset h4 {
    margin-top: 24px;
    margin-bottom: 16px;

    font-size: 18px;
    color: #111827;

    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

/* Horizontal divider */
.form-fieldset hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 28px 0;
}

/* Textarea */
.modern-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .bp-row {
        flex-direction: column;
    }
}
