.app-start-loading {
    display: flex;
    flex-direction: column; /* stack spinner + text vertically */
    align-items: center;
    -webkit-justify-content: inherit;
    justify-content: inherit;
    : flex-start; /* align to top instead of center */
    height: 100vh;
    text-align: center;
    gap: 1rem;
    padding-top: 30vh; /* push it down a bit from the top (adjust as needed) */
}

    .app-start-loading .spinner {
        width: 2rem;
        height: 2rem;
        border: 4px solid #ccc;
        border-top-color: #1e88e5;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    /* padding-top: 1.1rem; */ 
    height: 100%; 
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZ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ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.patient-nav-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background-color: #1D1B20;
    height: 55px;
    overflow: hidden;
}

.header-menu-text {
    font-size: 0.7rem;
}

.header-icon {
    height:25px;
    margin-top: 0.3rem;
    margin-bottom: -10px; 
}

/* Overridable for mobile screen widths */
.search-container {
    position: relative;
    display: inline-block;
    width: 250px;
    margin-right: 40px;
}

.search-input {
    width: 100%;
    padding-left: 20px;
    border-radius: 20px;
    height: 27px;
    font-size: 12px;
}

.navigation-arrow {
    margin-left: 20px;
    height: 15px;
    cursor: pointer;
}

.last-menu-header {
    margin-right: 0.5rem;
}


.header-bar {
    background-color: #2B2F80;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 12px;
    height: 4rem;
}

    .header-bar .logo {
        /* style for logo container if needed */
    }

    .header-bar .header-menu-items a {
        color: white; /* text color for links */
        margin-left: 20px;
        text-decoration: none;
        font-weight: bold;
    }

        .header-bar .header-menu-items a:hover {
            text-decoration: underline;
        }

.header-menu-items {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
    margin-right: 12px;
}

.side-menu {
    background-color: #1D1B20;
    height: 100%;
    /*width: 155px; */
    width: 75px;
    align-items: center;
    position: sticky;
    top: 0;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    height: 60px;
}

.vertically-centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.horizontal-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.nav-link.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-link.hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.side-menu-text {
    font-size: 12px;
}

thead th {
    height: 10px;
    vertical-align: middle; /* optional, for vertical centering */
    padding: 10px; /* optional, for spacing */
}
/* Add this in your CSS file */
.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Center the loader both vertically and horizontally */
.loading-container-centered {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    /*background-color: rgba(255, 255, 255, 0.8);*/ /* Optional: semi-transparent background overlay */
    z-index: 9999; /* Make sure it appears above other content */
}

/* add to your CSS file */
.scrollable-table-container {
    overflow-y: auto;
    /* height will be set dynamically via Blazor */
}

html, body {
    /*overflow: hidden;*/
    height: 100%;
    margin: 0;
    overflow-y: auto;
}

.modal-overlay {
    position: fixed; /* Cover entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Optional: semi-transparent background */
    display: flex; /* Center content */
    justify-content: center; /* Horizontal center */
    align-items: center; /* Vertical center */
    z-index: 1000; /* Make sure it's on top */
}

.modal-dialog {
    background-color: white; /* Or your preferred background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 300px;
    max-width: 80%;
}


@media (max-width: 600px) {
    .side-menu {
        background-color: #1D1B20;
        height: 100vh;
        /*width: 155px; */
        width: 58px;
        align-items: center;
        flex-shrink: 0;
    }
}

.layout {
    display: flex;
    flex-direction: column;
    /* height: calc(100% - 8rem); */
    height: 97%;
    background: #f5f5f5;
}

.page {
    display: flex;
    flex-direction: column;
    /* height: calc(100% - 8rem); */
    height: 97%;
    background: #f5f5f5;
    margin-top: 1rem;
}

    .page .page-title {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 18px;
    }

.pageform {
    border-radius: 8px;
    max-width: 600px;
    margin: 0 0 0 auto;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.pageform .section {
    margin-bottom: 24px;
}

.pageform .section.title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

    .pageform .row {
        display: flex;
        gap: 24px;
        margin-bottom: 16px;
    }

    .pageform .col {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .pageform .col-full {
        flex: 1 1 100%;
        display: flex;
        flex-direction: column;
    }

    .pageform label {
        font-weight: 500;
        margin-bottom: 6px;
    }

    .pageform .required {
        color: #d32f2f;
        margin-left: 2px;
    }

    .pageform .input, .pageform .input-dropdown select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 1rem;
        background: #fff;
        margin-bottom: 0;
        box-sizing: border-box;
    }

        .pageform .input[disabled] {
            background: #f3f3f3;
            color: #aaa;
        }

    .pageform .input-dropdown {
        position: relative;
        display: flex;
        align-items: center;
    }

        .pageform .input-dropdown select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
        }

    .pageform .dropdown-icon {
        position: absolute;
        right: 12px;
        pointer-events: none;
        font-size: 1.2em;
        color: #444;
    }

    .pageform .input-icon-group {
        display: flex;
        align-items: center;
        background: #ededed;
        border-radius: 5px;
        border: 1px solid #ddd;
        padding: 0 8px;
        margin-bottom: 0;
    }

        .pageform .input-icon-group .icon {
            margin-right: 6px;
            color: #888;
        }

        .pageform .input-icon-group .eye {
            margin-left: auto;
            cursor: pointer;
        }

        .pageform .input-icon-group .password-input {
            border: none;
            background: transparent;
            flex: 1;
            padding: 8px 0;
            margin: 0;
        }

    .pageform .reset-link {
        display: block;
        margin-top: 4px;
        font-size: 1rem;
        color: #1976d2;
        text-decoration: underline;
        cursor: pointer;
    }

    .pageform .button-row {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        margin-top: 18px;
    }

    .pageform .btn {
        padding: 8px 24px;
        border-radius: 6px;
        border: none;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
    }

    .pageform .btn-cancel {
        background: #e0e0e0;
        color: #888;
    }

    .pageform .btn-save {
        background: #ededed;
        color: #888;
    }

    .pageform .btn[disabled] {
        opacity: 0.6;
        cursor: not-allowed;
    }

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.18);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* REMOVE this line: */
    /* pointer-events: none; */
}

.modal-dialog {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 28px 24px 18px 24px;
    min-width: 340px;
    max-width: 95vw;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    position: relative;
    /* Add this: */
    /* REMOVE this line: */
    /* pointer-events: auto; */
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #444;
    margin-left: 8px;
}

.modal-subtitle {
    font-size: 1rem;
    color: #444;
    margin-bottom: 18px;
}

.modal-body label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.modal-footer {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 18px;
}

.btn-save {
    background: #ededed;
    color: #888;
}

    .btn-save[disabled] {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* When modal is open, block all pointer events to the background */
body.modal-open .page,
body.modal-open .pageform,
body.modal-open .main-content, /* add any other main containers if needed */
body.modal-open {
    pointer-events: none;
    user-select: none;
}

    /* Allow pointer events only on the modal */
    body.modal-open .modal-backdrop,
    body.modal-open .modal-dialog {
        pointer-events: auto;
        user-select: auto;
    }

/* Hide the built-in eye icon in Chrome, Edge, and some other browsers */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-input-password-toggle-button {
    display: none !important;
}

input[type="password"]::-webkit-input-password-toggle {
    display: none !important;
}

input[type="password"]::-webkit-input-placeholder {
    /* No effect, but included for completeness */
}

input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
}

.input-icon-group .password-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.input-icon-group .password-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.input-icon-group:focus-within {
    border: 2px solid #000000; /* or your highlight color */
    /*box-shadow: 0 0 0 2px #e3f0fc;*/ /* optional, for a subtle glow */
}

.input-icon-group .password-input {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

.input::placeholder {
    font-size: 0.85em; /* or any size you want */
    color: #bbb; /* optional: lighter color */
}
    }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

#app {
    height: 100vh;
    overflow: hidden;
}

/* Remove any height: 100vh from your page components */
.container-wrapper {
    display: flex;
    flex-direction: column;
}

.container {
    min-height: 100vh; /* Change from height to min-height */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}