:root {
    --highlight-blue: #0056b3;
    --blue-border: 1px solid var(--highlight-blue);
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    --link-blue: #0000EE;
    --disabled-grey: #808080;
    --good-green-background: #a0ffbd;
    --app-height: 100vh;
}

/* Apply box-sizing globally for all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: helvetica, arial, sans-serif;
    font-size: 14px; 
    color: red; /*Used to make sure we are explicitly setting values */
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: var(--app-height, 100dvh);
    margin: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    box-sizing: border-box;
}

input, select, textarea, button {
    font-size: 18px !important; /* keep >16px to prevent iOS focus zoom */
    line-height: 1.3;
    -webkit-text-size-adjust: 100% !important;
}

.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: var(--app-height, 100dvh);
    background-color: #f4f4f4;
    overflow: hidden;
}

.login-container {
    color: black;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;  /* this will need to be updated to support dynamic screen sizes */
    -webkit-text-size-adjust: 100%; /* help avoid iOS zoom adjustments */

}
.login-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 30px;
    color: #005C99;
    font-weight: bold;
}
.login-icon {
    width: 150px; /* this will need to be updated to support dynamic screen sizes */
    height: 150px;
    border-radius: 50%;
    background-color: #f0f0f0; /* Placeholder for logo background */
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-form-group {
    margin-bottom: 15px;
}

.login-form-group label {
    color: black;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
}

.login-form-group input {
    width: 100%;
    font-size: 18px !important; /* keep >16px to prevent iOS focus zoom */
    line-height: 1.3;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    background-color: #005C99;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
}

.login-confirm-info {       /* this is not currently used */
    font-size: 12px;
    color: #555;
    text-align: center;
    font-style: italic;
    font-weight: normal;
}

.btn:hover {
    background-color: var(--highlight-blue);
}

.login-container {
    text-align: center;
    margin-top: 10px;
}

.login-options {
    color: #007bff;
    text-decoration: underline;
    display: grid;
    grid-template-columns: auto auto;
}

.login-forgot-password {
    text-align: left;
}
.login-register {
    text-align: right;
}

#screenHeader {
    display: grid;
    text-align: center;
    grid-template-columns: min-content auto min-content;
    background-color: #333;
    padding: 15px;
    color: white;
    position: sticky;
}

#screenMain {
    display: flex;
    flex-direction: column;
    height: auto; /* Height auto & flex grow forces to fix exactly the right size  - which is whole page less screenHeader and screenFooter */
    flex-grow: 1;
    overflow-y: auto;
}

#titleLabel {
    font-size: 20px;
}

#topbar {
    display: flex
}

#wholepage {
    display: flex;
    flex-flow: column;
    min-height: var(--app-height, 100dvh);
    max-height: var(--app-height, 100dvh);
}

#overlaySettings {
    height: 100%;
    width: 100%;
    position: fixed;
    background-color: rgba(200, 200, 200, 0.8);
    overflow-y: hidden;
    z-index: 50;
}

#overlayActionButton {
    position: absolute;
    bottom: calc(10px + env(safe-area-inset-bottom));
    right: calc(10px + env(safe-area-inset-right));
    background-color: #283fa7;
    border: none;
    color: white;
    border-radius: 40%;
    font-size: 28px;
    width: 40px; /* this will need to be updated to support dynamic screen sizes */
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    box-shadow: var(--box-shadow);
}

#overlayPlusButton:hover {
    background-color: #00167a;
}

.medChartTableContainer {
    border: 1px solid #C9D1DC;
    overflow: auto;
    max-width: 100vw;
}

.medChartTableContainer table {
    border-spacing: 0;
    background: #FFFFFF;
}

.medChartTableContainer thead {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.05em;
}

.medChartTableContainer tbody {
    font-size: 14px;
}
.medChartTableContainer th {
    padding: 5px;
}

.medChartTableContainer th,
.medChartTableContainer td {
    /* white-space: nowrap; */
    text-align: center;
    border-bottom: 1px solid #C9D1DC;
}

.medChartTableContainer tr:last-child td {
    border-bottom: none;
}

.medChartTableContainer tr.sticky {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5f5f5;
}

.medChartDateHeaderToday {
    background-color: #fa7878 !important;
}
.medChartPRNContainer {
    display:grid;
    grid-template-columns: 1fr min-content min-content min-content;
    white-space: nowrap;
    overflow: auto;
    max-width: 100vw;
    background: #f5f5f5;
    text-align: center;
}
.medChartPRNHeader {
    padding: 5px;
    font-weight: bold;
    border: 1px solid #C9D1DC;
}
.medChartMedName {
    border: 1px solid #C9D1DC;
    white-space: nowrap;
}
.medChartPRNData {
    padding: 5px 5px;
    border: 1px solid #C9D1DC;
}
.medChartPRNAdminOK {
    background-color: var(--good-green-background);
    font-style: italic;
}
.medChartPRNAdminTooSoon {
    background-color: #ffbcbc;
    font-style: italic;
}
.medChartGivenMedSlot {
    font-size: 12px;
    background-color: var(--good-green-background);
    padding: 5px;
}
.medChartAddMedSlot {
    color: var(--link-blue);
}
.medChartFutureMedSlot {
    color: var(--disabled-grey);
    padding: 5px;
}
.medChartPRNReason {
    font-style: italic;
    font-size: 12px;
    color: #555;
}
#medSearchResults {
    display: block;
    border-radius: 10px;
    font-size: 16px;
    color: #000;
    position: fixed;
    overflow-y: hidden;
    background-color: white;
    z-index: 2;
}
#medSearchResults ul {
    list-style-type: none; /* Remove list-style markers */
    padding: 0;
    margin: 0;
}
#medSearchResults ul li {
    border-bottom: 1px solid lightgray; /* Light gray bottom border */
    padding: 5px; /* Add some space around the text */
}
#medSearchResults ul li:last-child {
    border-bottom: none;
}

.medChartTableContainer th.sticky,
.medChartTableContainer td.sticky {
    position: sticky;
    left: 0;
    background: #f5f5f5;
    border-right: 1px solid #C9D1DC;
}
.shareButtonIcon {
    width: 18px; /*  will this need to be updated to support dynamic screen sizes */
    height: 18px;
    margin: 7px;
    vertical-align: bottom;
    mask-image: url(icons/share_unfilled.svg);
}
.overlayFooter {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.overlayFooterLinkLeft {
    margin-top: auto;
    padding-left: 15px;
    padding-bottom: 10px;
    font-size: 12x;
    color: blue;
    text-align: right;
}

.overlayFooterLinkRight {
    margin-top: auto;
    padding-right: 15px;
    padding-bottom: 10px;
    font-size: 12x;
    color: blue;
    text-align: right;
}

.outer-overlay-container{ 
    min-height: var(--app-height, 100dvh);
    display: flex;
}

.overlay-container { 
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-edit-outer-container {
    max-height: 100%; /* Limit maximum height */
    margin: 20px;
    max-width: min(400px, calc(100vw - 42px)); /* Limit maximum width to 400px or screen width minus 42px */
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.add-edit-inner-container {

    padding: 20px;
    overflow-y: auto;
    border-radius: 10px; /* Curved corners */
    box-shadow: var(--box-shadow); 
    border: var(--blue-border); /* Darker border for contrast */
}
.medEditReadOnly {
    display: flex;
    width: 100%;
    padding: 10px 10px 10px 5px;
    font-size: 18px;
    font-weight: bold;

}
.medEditReadOnlyLabel {
    font-size: 14px;
    font-style: italic;
    color: red;
    padding-left: 10px;
    font-weight: normal;
    align-self: flex-end; /* Aligns the span to the bottom of the flex container */
}
.medDetailFooterButtonsContainer {
    flex: 0 0 auto; /* Don't grow, fit to content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
}
.medDetailFooterButton,
.medDetailFooterButtonDelete,
.medDetailFooterButtonResume {
    color: black;
    font-size: 16px;
    border: var(--blue-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px 20px;
    box-shadow: var(--box-shadow);
}
.medDetailFooterButtonDelete {
    background-color: #ff8c8c; 
}
.medDetailFooterButtonResume {
    background-color: #a0ffa0; 
}
.medDeleteMedText {
    text-align: center;
}
.medDeleteMedDetail {
    text-align: center;
    color: black;
    margin: 20px 5px;
    font-weight: bold;
}
.medDeleteWarning {
    text-align: center;
    font-style: italic;
    color: red;
}

/* ---------------- Shared Classes ---------------- */
.flex-container-column {
    display: flex;
    flex-direction: column; /* Stacks the boxes vertically */
    width: 100%;
    height: 100%; /* Full height to center vertically */
    gap: 15px; /* Adds space between the boxes */
}

.hidden {
    display: none !important;
}

.visually-hidden {
    visibility: hidden !important;
}

.gender-selection button {
    font-size: 3em;
    padding: 10px;
    cursor: pointer;
}

.dashboard_visits {
    font-size: 16px;
}

.visit_box {
    display: flex;
    flex-direction: column; /* Stacks the boxes vertically */
    background-color: #f9f9f9;
    color: black;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: var(--blue-border); 
    position: relative; /* Important for positioning internal icons */
}

.visit_date {
    font-size: 16px;
    font-weight: bold;
}

.visit_label {
    font-size: 10px;
    font-style: italic;
    padding-top: 8px;
}

.visit_data {
    font-size: 16px;
}

.visit_details_box {
    display: flex;
    flex-direction: column; 
    background-color: white;
    color: black;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: var(--blue-border);
    position: relative; /* Important for positioning internal icons */
}

.overlayContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.overlayFullScreenContainer {
    height: var(--app-height, 100dvh);
    width: 100%;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7); /*Darker overlay to make content stand out */
    overflow: hidden;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.settingsScreen {
    font-size: 25px;
    background-color: white;
    color: black;
    height: 100%;
    width: 70%;
    border-bottom-right-radius: 25px;
    border-top-right-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.settingsContent {
    flex-grow: 1;
    overflow-y: auto;
}

.settingsGrid {
    display: grid;
    grid-template-columns: auto 1fr; 
    align-items: center;
    padding-left: 10px;
}

.settings-icon {
    text-align: center;
}

.settings-text {
    text-align: left;
    padding: 12px;
    font-size: 20px;
    font-weight: bold;
}

.settingsHeader {
    background-color: #005C99;
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 20px;
    color: #F9BE00;
    border-top-right-radius: 25px;
}

.settingsWelcome {
    font-style: italic;
    font-size: 25px;
    padding-top: 20px;
    color: white;
}

.settingsIcon {
    height: 60px;
    border-radius: 60px; /*Curved corners */
}

.centeredOverlay {
    --OuterMargin: 25px;
    width: calc(100% - 2 * var(--OuterMargin)); /* 100% width minus the border (20px on each side) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    margin: var(--OuterMargin);
    background-color: white;
}

.infoOverlay {
    --OuterMargin: 25px;
    width: calc(100% - 2 * var(--OuterMargin)); /* 100% width minus the border (20px on each side) */
    height: calc(100% - 2 * var(--OuterMargin)); /*100% height minus the border (20px on each side) */
    border-radius: 20px;
    margin: var(--OuterMargin);
    background-color: white;
}

.overlayHeader {
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 20px;
    color: black;
    background-color: rgb(240, 240, 240);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.overlayContents {
    font-size: 14px;
    color: black;
    padding: 10px;
    overflow-y: auto; /*makes the content scroll */
    white-space: pre-wrap;
}

.permissionGridHeader {
    display: grid;
    text-align: center;
    grid-template-columns: min-content auto min-content;
    font-size: 20px;
}

.permissionGrid {
    display: grid;
    grid-template-columns: min-content auto;
    width: 100%;
    gap: 10px;
    margin: 10px;
    font-size: 18px;
    text-align: left;
}

.disabled {
    color: var(--disabled-grey);
}
.closeLink {
    margin-top: auto;
    padding-right: 15px;
    padding-bottom: 10px;
    font-size: 12x;
    color: blue;
    text-align: right;
}

.confirmOverlayContainer {
    border-radius: 20px;
    margin: 25px;
    background-color: white;
}

.confirmOverlayHeader {
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 20px;
    color: black;
    background-color: rgb(240, 240, 240);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.confirmOverlayContents {
    padding: 15px;
    font-size: 16px;
    color: black;
}
.confirmCancelLink {
    margin-top: auto;
    padding-left: 15px;
    padding-bottom: 10px;
    font-size: 12x;
    color: blue;
    text-align: left;
}
.confirmOKLink {
    margin-top: auto;
    padding-right: 15px;
    padding-bottom: 10px;
    font-size: 12x;
    color: red;
    text-align: right;
}
.nogap {
    gap: 0px;
}

.versionText {
    margin-top: auto;
    margin: 0px 0px 5px 5px;
    font-size: 10px;
    color: #888;
}

.loginVersionInfo {
    position: fixed;
    bottom: 8px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    color: #888;
    z-index: 999;
}

.largeSelectButton {
    background-color: #f9f9f9; /*Lighter for better contrast with borders */
    margin: 20px;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: var(--blue-border);
    flex: 1;
    color: #333;
    font-size: 25px;
}

.detailsBox {
    flex: 1;
    background-color: #f9f9f9;
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: var(--blue-border); 
    color: black;
    font-size: 20px;
}

.detailsHeader {
    flex: 0; /* don't grow - minimal height if in flex container */
    background-color: lightgray;
    color: black;
    font-size: 20px;
    text-align: center;
    padding: 10px 0;
}

.detailsHeaderWFilter-container {
    flex: 0; /* don't grow - minimal height if in flex container */
    grid-template-columns: min-content auto; /* Make this into two sections - label and filter */
    background-color: lightgray;
    color: black;
    font-size: 20px;
    padding: 10px 0;
    display: grid;
}

.detailsHeaderWFilter-label {
    text-align: left;
    padding-left: 5px;
}

.detailsHeaderWFilter-filter {
    text-align: right;
    padding-right: 5px;
}

.detailsHeaderWFilter-dropdown {
    padding: 2px;
    font-size: 16px;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.innerContainer_2x2Grid {
    display: grid;
    grid-template-columns: min-content auto;
    gap: 5px;
    background-color: #f9f9f9;
    color: black;
    margin: 15px;
    padding: 8px;
    border-radius: 10px; /* Curved corners */
    box-shadow: var(--box-shadow);
    border: var(--blue-border);
    position: relative; /* Important for positioning internal icons */
}

.innerContainer_95_5Grid {
    display: grid;
    grid-template-columns: 95% 5%;
    align-items: center;
}

.innerContainer_data_boxes {
    display: flex; 
    flex-direction: column; /* Stacks the boxes vertically */
    width: 100%; /* Takes full width of the parent container */
    position: relative; /* Important for positioning internal icons */
}

.innerContainer_vert {
    display: flex; 
    flex-direction: column; /* Stacks the boxes vertically */
    width: 100%; /* Takes full width of the parent container */
    gap: 15px;
    position: relative; /* Important for positioning internal icons */
}

.innerContainer_horiz {
    display: flex; 
    justify-content: space-between; /* Space between forces the items to the outer edges */
}

.detail_label {
    font-size: 16px;
}

.detail_data {
    font-size: 16px;
}

.alignleft {
    text-align: left;
}

.icon-overlay-inset {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 20px; /* Adjust icon size */
}

.rotate_135 {
    display: inline-block;
    transform: rotate(135deg); /* Rotate the pencil icon */
}

.labelandRightIcon_label {
    text-align: left;
}

.labelandRightIcon_icon {
    text-align: right;
}
.instruction1 {
    color: black;
    font-size: 24px;
    text-align: center;
    padding: 15px;
}
.alertbox {
    color: black;
    font-size: 20px;
    text-align: center;
    margin: 15px;
    padding: 15px;
    background-color: lightblue;
    border-radius: 10px; /* Curved corners */
    box-shadow: var(--box-shadow); 
    border: var(--blue-border); /* Darker border for contrast */
}
.alertbox_1 {
    background-color: lightgreen;
}
.alertbox_3 {
    background-color: pink;
}

.sharebuttonbox {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sharebutton {
    padding: 10px 30px;
    font-size: 18px;
    background-color: #ffffff;
    color: black; 
    border: var(--blue-border); /* Darker border for contrast */
    border-radius: 10px; 
    box-shadow: var(--box-shadow);
    text-align: center;
}
.medScreenOuterContainer {
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure full width */
    overflow: hidden; /* Prevent scrolling */
    flex-grow: 1; /* Take all available space */
    height: 100%; /* Ensure it takes the full height of the parent */
}
.medSubScreenSelector {
    flex: 0; /*Don't Grow fit to content */
    display: flex;
}
.medSubScreenSelectorButton {
    flex: 1;
    background-color: #f0f0f0;
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
    color: gray;
}
.addmed-QuantityDose-OuterContainer,
.addmed-QuantityDose-OuterContainer-NoDose {
    display: flex;
    gap: 8px;
}
.addmed-QuantityDose-InnerContainer {
    display: flex;
    flex: 1 1 0;
    min-width: 0;           /* important for iOS so it can shrink */
    align-items: flex-end;  /* so units align with the input bottom */
}
.addmed-QuantityDose-InnerContainer .edit-group {
    width: auto;       /* let flexbox control the width */
    flex: 1 1 0;
    min-width: 0;
}
.addmed-units {
    margin-left: 4px;
    white-space: nowrap;   /* “units” stays on one line */
    align-self: flex-end;
    color: black;
    font-size: 14px;
    padding: 5px 5px 20px 5px;
}
.addmed-schedtype-left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.addmed-schedtype-right {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.addmed-schedtype-selected {
    color: #111827;
    background-color: #fdfdfd; /* keep high contrast for active button */
}
.addmed-schedtype-not-selected {
    color: #1f2933; /* dark blue-gray keeps contrast ratio > 4.5:1 */
    background-color: #e9edf3;
}
.addmed-schedtype-selected,
.addmed-schedtype-not-selected {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 10px;
    border: var(--blue-border);
    transition: border-color 0.3s ease; /* Smooth transition effect */
}
.addmed-schedtype-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}
.addmed-schedtype-fieldset legend {
    width: 100%;
    margin-bottom: 6px;
}
.addmed-schedtype-label {
    position: relative;
    font-weight: 600;
}
.addmed-schedtype-label.addmed-schedtype-not-selected {
    font-weight: 500;
    border-color: #c7d1e0;
}
.addmed-schedtype-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.addmed-schedtype-label:focus-within {
    outline: 2px solid #0A5FD3;
    outline-offset: 2px;
}
.medInstructions {
    overflow: hidden; /* Hide the scrollbar */
    resize: none; /* Prevent manual resizing by the user */
}
.selectedButton {
    background-color: #f0f0f0;
    color: black;
    font-weight: bold;
    border: 1px solid black;
}
#medScreenDetails {
    flex: 1 1 auto;
    color: black;
    display: flex;
    justify-content: center;
    overflow-y: hidden;
}
.medAdminOuterContainer {
    display: flex;
    flex-direction: column;
    color: black;
    width: 100%;
}
.medAdminInnerContainer {
    display: flex;
    flex-direction: column;
    color: black;
    padding: 10px;
    margin: 10px;
    border-radius: 10px; 
    width: calc(100% - 2 * var(--OuterMargin)); /* 100% width minus the border (20px on each side) */
    border: var(--blue-border);
    transition: border-color 0.3s ease; /* Smooth transition effect */
    background-color: #f9f9f9;
}
.medSubScreenHeader {
    color: black;
    text-align: center;
    font-size: 18px;
    padding: 5px 0;
}
.medAdminGridHeader {
    background-color: #f0f0f0;
    border: 1px solid black;
    text-align: center;
}
.medAdminGridName,
.medAdminGrid {
    padding: 2px 4px;
    background-color: #f0f0f0;
    border: 1px solid black;
}
.medAdminGridName {
    text-align: left;
}
.medAdminGrid,
.medAdminSelect_check {
    display: flex; /* Enable Flexbox in each cell */
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
    text-align: center; /* Horizontally center the text inside the content */
}
.medAdminSelect_check {
    font-size: 24px;
    padding-right: 10px;
    width: 30px;
}
.medAdminSelectedRow {
    background-color: #81ff92;
}
.medAdminGivenNote {
    font-size: 12px;
    font-style: italic;
}
.medAdminGiven,
.medAdminGivenNote {
    color: rgb(82, 82, 82);
}
.medAdminNavicon {
    white-space: nowrap;
    color: grey;
    font-size: 14px;
    font-style: italic;
    width: 50px;
}
.emptyContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.medAdminNavHeader {
    display: grid;
    grid-template-columns: min-content auto min-content; /* Column sizing */
    color: black;
    text-align: center;
    font-size: 20px;
}
.medAdminDateTime input[type="datetime-local"] {
    align-self: center;
    color: black;
    background-color: #f9f9f9;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;    
}
.medAdminMedListContainer {
    display: grid;
    grid-template-columns: min-content auto; /* Column sizing */
    color: black;
    text-align: left;
    font-size: 18px;
}
.medAdminNoMeds {
    color: black;
    font-size: 16px;
    text-align: center;
    font-style: italic;
    margin-top: 50px;
}
.medNextAdminSaveButton {
    background-color: #f9f9f9;
    color: black;
    font-size: 16px;
    width: calc(100% - 2 * var(--OuterMargin)); /* 100% width minus the border (20px on each side) */
    border: var(--blue-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px 20px;
    margin: 10px;
    background-color: #f9f9f9;
    box-shadow: var(--box-shadow);

}
.medListOuterContainer {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%; /* Ensure it takes the full height of the parent */
}
.medListStoppedHeader {
    color: black;
    text-align: center;
    font-size: 18px;
    padding: 5px 0;
    border: 1px solid red;
    border-radius: 10px;
    background-color: #ffdede; 
}
.medListBodyContainer {
    flex: 1; /* Take all available space */
    overflow-y: auto; /* Allow scrolling if content overflows */
    display: flex;
    flex-direction: column;
}
.medListStoppedDetailInfo {
    color:red;
}
.medListFooterContainer {
    padding: 5x; /* Optional: Padding for footer content */
    display: flex; /* Use flexbox for alignment */
    justify-content: flex-start; /* Align content to the left */
    align-items: center; /* Center content vertically */
}
.medListMedContainer {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid black;
    background-color: white;
    padding: 5px;
}
button.medListFooterButton {
    width: auto; /* Automatically size the button */
    margin: 15px;
}
.medListMedName {
    font-weight: bold;
    font-size: 16px;
}
.medDetailOuterContainer {
    display: flex;
    flex-direction: column;
    --OuterMargin: 8px;
    width: calc(100% - 2 * var(--OuterMargin)); /* 100% width minus the border (20px on each side) */
    background-color: white;
    border: var(--blue-border); /* Darker border for contrast */
    border-radius: 10px; 
    box-shadow: var(--box-shadow);
}
.medDetailBody {
    flex: 1 1 auto; /* Allow the middle section to grow and take the remaining space */
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}
.medDetailNameDose {
    text-align: center;
    color: black;
    font-size: 20px;
    font-weight: bold;
}
.medDetailHeader {
    flex: 0 0 auto; /* Don't grow, fit to content */
    display: grid;
    align-items: center;
    text-align: center;
    grid-template-columns: min-content auto min-content;
    padding: 10px;
}
.medDetailNavicon {
    white-space: nowrap;
    color: grey;
    font-size: 12px;
    font-style: italic;
    width: 50px;
}
.medDetailContainer_Row {
    flex: 0 0 auto; /* Don't grow, fit to content */
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
    padding: 10px;
    font-size: 16px;
}
.medDetailContainer_Data {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: 16px;
    overflow-y: auto;
}
.medDetailLabel {
    font-size: 16px;
    font-style: italic;
    color: grey;
}
.medDetailData {
    font-size: 18px;
}
.medDetailContainer_MedHxContainer {
    flex: 1 1 auto; /* Don't grow, fit to content */
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding: 10px;
    font-size: 16px;
    min-height: 0;  /* Important for allowing inner scroll */
}
.medDetailHistoryChart {
    flex-shrink: 1;
    flex-grow: 1;
    min-height: 0; /* prevents overflow pushing parent */
    overflow-y: auto; /* Scroll only when needed */
    display: grid;
    grid-template-columns: minmax(min-content, max-content) auto min-content;
    grid-template-rows: auto;
    width: 100%;
    padding: 10px;
    border: 1px solid black;
    background-color: white;
    gap: 5px;
}
.medDetailContainerStopped {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    background-color: #ffdede; /* Light red background */
    color: black;
    border-radius: 10px; /* Curved corners */
    box-shadow: var(--box-shadow);
    grid-column: span 3;
    padding: 10px;
    gap: 5px;
}
.medDetailContainerStarted {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    color: black;
    grid-column: span 3;
    font-style: italic;
}
.medAdminEntryOuterContainer {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid black;
    background-color: white;
    padding: 5px;
}
.medAdminEntryHeader {
    text-align: center;
    padding: 10px;
    color: black;
    font-size: 20px;
    font-weight: bold;
    align-items: center;
}
.medChartNoMedSlot {
    background-color: gray;
}
.medChartHeader {
    text-align: center;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
}
.spaceAbove {
    margin-top: 10px;
}
.med-search-container {
    flex: 1;
    overflow-y: auto;
}
.med-search-filter {
    padding: 2px;
    font-size: 16px;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
}
.med-search-box {
    padding: 2px;
    font-size: 16px;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
}
.med-addedit-outer-container {
    display: flex;
    flex-direction: column; /* Stacks the boxes vertically */
    width: 100%;
    height: 100%; /* Full height to center vertically */
    gap: 15px; /* Adds space between the boxes */
}
.button-sidebyside-container {
    display: flex;
    justify-content: space-around; 
    align-items: stretch; 
    width: 100%; 
    margin: 0 auto; 
}
.med-filters-sidebyside-container {
    display: flex;
    justify-content: space-around; 
    align-items: center; 
    width: 100%; 
    margin: 0 auto; 
}
.save-button, .cancel-button, .color-button {
    flex: 1; /* Buttons will take up equal width */
    padding: 10px 20px;
    font-size: 16px;
    border: var(--blue-border);
    border-radius: 10px;
    cursor: pointer;
    background-color: #f9f9f9;
    box-shadow: var(--box-shadow)
}
.infobutton {
    font-size: 20px;
    color: blue;
    cursor: pointer;
}
.infobutton-smaller {
    font-size: 18px;
    color: blue;
    cursor: pointer;
}
.select-days-container {
    display: flex;
    justify-content: center;
    gap: 5px;
}
.day-box {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--blue-border);
    border-radius: 5px;
    cursor: pointer;
    background-color: #f9f9f9;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    user-select: none;
    transition: background-color 0.3s, color 0.3s;
  }
.day-box.grayedout {
    background-color: #f9f9f9;
    color: darkgray;
    border: 1px solid #ccc;
}
.day-box.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.day-box.selected.grayedout {
    background-color: #2a5d93;
    color: lightgray !important; 
    border-color: lightgray;
}
.select-times-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: stretch; 
}
.recurrence-options-container {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Ensures all rows are of equal height */
}
.recurrence-options-select,
.recurrence-options-select-number {
    padding: 10px; /* Padding for a more substantial look */
    border: var(--blue-border);
    border-radius: 10px; /* Rounded edges */
    font-size: 16px;
    color: rgb(31, 31, 31);
    background-color: #f7f7f7; /* Light cream background */
    transition: border-color 0.3s ease; /* Smooth transition effect */
}
.recurrence-options-select-number {
    width: calc(3ch + 30px);
}
.recurrence-options-select:focus,
.recurrence-options-select-number:focus {
    border-color: #FF6F61; /* Bright red to indicate focus */
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 8px rgba(255, 111, 97, 0.5); /* Add a focused shadow effect */
}
.grayedout {
    border: 1px solid lightgray !important;
    color: rgb(83, 83, 83) !important;
}
.repeatDetails {
    color: var(--link-blue);
    font-size: 16px;
    font-style: italic;
    text-decoration: underline;
}
.time-box {
    background-color: #f9f9f9;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
}
.time-add-time {
    background-color: #f9f9f9;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 18px;
    font-style: italic;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.edit-group-row {
    display: flex;
    gap: 10px;
    flex-shrink: 1;
    padding: 5px;
    font-size: 16px;
    align-items: center;
}
.no-border {
    border: 0px;
}

.statusUpdate {
    color: blue;
    font-size: 20px;
    font-style: italic;
}

.horizcenter {
    align-items: center;
}

.vertcenter {
    justify-content: center; /*Centers vertically with flex-direction columns */
}

@media (max-width: 768px) {
    .form-card {
        grid-template-columns: 1fr;
        /* Revert to single-column on smaller screens */
    }
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00457C;
}

.edit-container {
    display: flex;
    flex-direction: column; /* Stacks the boxes vertically */
    width: 100%;
    height: 100%; /* Full height to center vertically */
    gap: 3px; /* Adds space between the edit boxes */
}

.edit-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 5px;
    margin-bottom: 15px;
    color: rgb(31, 31, 31);
    font-size: 20px;
}
.edit-group label,
.edit-group-label {
    font-size: 16px;
    font-style: italic;
}
.edit-group-required {
    color: red;
    font-weight: bold;
}
.no-margin-bottom {
    margin-bottom: 0px;
}
.edit-group input[type="text"],
.edit-group input[type="email"],
.edit-group input[type="datetime-local"],
.edit-group input[type="date"],
.edit-group input[type="select"],
.edit-group input[type="tel"],
.edit-group-select,
.medInstructions
{
    width: 100%;
    padding: 10px; /* Padding for a more substantial look */
    border: var(--blue-border);
    border-radius: 10px; /* Rounded edges */
    font-size: 16px;
    color: rgb(31, 31, 31);
    background-color: #f7f7f7; /* Light cream background */
    transition: border-color 0.3s ease; /* Smooth transition effect */
}
.edit-group input[type="text"]:focus,
.edit-group input[type="email"]:focus,
.edit-group input[type="datetime-local"]:focus,
.edit-group input[type="date"]:focus,
.edit-group input[type="tel"]:focus,
.edit-group-select:focus,
.medInstructions:focus {
    border-color: #FF6F61; /* Bright red to indicate focus */
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 8px rgba(255, 111, 97, 0.5); /* Add a focused shadow effect */
}
.edit-group-select,
.edit-group input[type="date"],
.edit-group input[type="datetime-local"],
.edit-group input[type="select"] {
    -webkit-appearance: none;
    appearance: none;
    width: -webkit-fill-available;
    min-height: 2.6em;  /* REQUIED FOR IOS TO NOT BE SHORT WHEN EMPTY */
}

.remove-button {
    font-size: 20px; /* Adjust size */
    color: red; /* Icon color */
    cursor: pointer; /* Pointer cursor on hover */
    border: none;
    background: none;
    padding: 1px;    
}

.toggleshowpassword {
    display: grid;
    grid-template-columns: min-content auto;
    gap: 10px;
    justify-items: start;
    align-items: center;
    font-size: 13px;
    color: darkgray;
    margin-top: 5px;
    margin-bottom: 8px;
}

button.save-button, button.cancel-button, button.delete-button, button.color-button {
    width: 100%;
    max-width: 400px; /* Constrain max width for a consistent UI */
    padding: 15px;
    margin-bottom: 10px; /* Space between save and cancel buttons */
    border-radius: 8px;
    cursor: pointer;
}

button.delete-button {
    background-color: #d13939;
}

button.delete-button:hover {
    background-color: yellow;
}

button.save-button:hover {
    background-color: #218838;
}

button.color-button:hover {
    background: linear-gradient(to right, rgb(255, 178, 178), rgb(255, 217, 146), rgb(255, 255, 122), rgb(122, 255, 122), rgb(124, 124, 255), rgb(202, 128, 255));
}

button.cancel-button:hover {
    background-color: #d13939;
}

.section-heading {
    font-size: 18px;
    color: var(--highlight-blue); /* Consistent blue */
    margin-top: 30px;
    margin-bottom: 10px;
    text-transform: uppercase; /*Uppercase heading */
    font-weight: bold;
}

button {
    width: 100%; /* Make buttons take the full width of the container/div */
    padding: 15px; /* Add padding for better click/touch area */
    margin: 10px 0; /* Space between buttons */
    font-size: 18px; /* Increase font size for better readability */
    background-color: #ffffff; /* Set button background color */
    color: #333; /* Set button text color */
    border: 1px solid #ccc; /* Subtle border around buttons */
    border-radius: 10px; /* Rounded corners for smooth, modern look */
    box-shadow: var(--box-shadow); /* Box shadow for visual depth */
    cursor: pointer; /* Change cursor to indicate clickable button */
}

button:hover {
    background-color: #f0f0f0; /
}

p {
    margin-top: 15px;
    font-size: 14px;
}

p a {
    color: #007bff;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

.detailsBoxCompact {
    padding: 10px;
    margin: 10px 0;
    background-color: lightgray;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    color: black;
    font-size: 16px;
}

/* Container for provider cards */
.provider-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.provider-list-next-visit-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    font-size: 16px;
    gap: 10px;
}
.provider-list-next-visit-box {
    display: flex;
    gap: 5px;
}
.provider-list-next-visit-label {
    font-weight: bold;
    flex-wrap: nowrap;
}
.provider-list-next-visit-data {
    flex-wrap: nowrap;
}

/* Centered emoji for edit screen */
.provider-emoji {
    font-size: 3em;
    text-align: center;
}

.provider-info {
    color: black; /* Set all provider details text to black */
    font-size: 16px; /* Set uniform font size */
    flex: 2;
}

.provider-info h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.provider-info p {
    color: #555;
    font-size: 16px;
    margin: 5px 0;
}

.provider-specialty {
    font-style: italic;
    color: gray;
}

.provider-visit-dates,
.provider-managing-issues {
    font-size: 16px;
    color: black;
    margin-top: 10px;
}


.provider-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.portal-button,
.call-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
}

.portal-button:hover,
.call-button:hover {
    background-color: var(--highlight-blue);
}

/* Add Provider button at the bottom of the provider list */
.add-provider-button {
    margin-top: 20px;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
}

.add-provider-button:hover {
    background-color: #218838;
}

/* Each provider card */
.provider-card {
    display: flex;
    background-color: #f9f9f9;
    box-shadow: var(--box-shadow);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: var(--blue-border); 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.provider-name {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.provider-specialty {
    font-style: italic;
    color: gray;
}

.provider-actions {
    display: flex;
    gap: 10px;
}

/* Edit icon container */
.edit-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

/* Edit icon image styling */
.edit-icon-img {
    width: 20px; /* Icon size */
    height: 20px;
    transition: opacity 0.2s;
}

.edit-icon-img:hover {
    opacity: 0.7; /* Slight opacity change on hover to provide feedback */
}


/* Styling for the Add Edit Screens */
.add-edit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed; /* Updated from 'absolute' to 'fixed' 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Take 90% of the viewport width */
    max-width: 400px; /* Limit maximum width */
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}


.add-edit-header {
    flex: 0; /* don't grow - minimal height if in flex container */
    color: black;
    font-size: 20px;
    text-align: center;
    padding: 10px 0;
}

/* Pencil icon in the bottom right of the provider card */
.icon-pencil-bottom {
    position: absolute; /* Position relative to the card */
    bottom: 15px; /* Adjust to be aligned with the bottom right of the card */
    right: 15px;
    cursor: pointer; /* Make it clear that it's clickable */
    z-index: 10; /* Ensure it appears above other elements */
}

.icon-pencil-bottom svg {
    width: 24px; /* Set the size of the pencil icon */
    height: 24px;
    fill: none; /* No fill, just an outline */
    stroke: #007bff; /* Blue color to match branding */
    transition: stroke 0.3s ease; /* Smooth transition effect on hover */
}

.icon-pencil-bottom svg:hover {
    stroke: var(--highlight-blue); /* Darker blue on hover to provide visual feedback */
}


.visits-section {
    margin-top: 15px;
}

.visits-section div {
    margin-bottom: 5px;
    font-size: 16px;
    padding: 10px;
    background-color: #f7f7f7;
    border-radius: 5px;
}

.edit-button {
    background-color: #007bff; /* Blue */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
}

.edit-button:hover {
    background-color: var(--highlight-blue);
}

.delete-button {
    background-color: #dc3545; /* Red */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
}

.delete-button:hover {
    background-color: #c82333;
}

.back-button {
    background-color: #6c757d; /* Gray */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
}

.back-button:hover {
    background-color: #5a6268;
}

.horizontal-line {
    border: 0; /* Remove default border */
    height: 2px; /* Line height */
    background: linear-gradient(to right, #f06, #4a90e2); /* Gradient color */
    margin: 5px 0; /* Spacing above and below */
    opacity: 0.8; /* Slight transparency */
}

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

.emoji-selector-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    grid-template-rows: repeat(2, auto);
    /* 2 rows */
    gap: 20px;
    /* Space between emojis */
    justify-content: center;
    margin-bottom: 20px;
}

.emoji-option {
    font-size: 3em;
    /* Set emoji size */
    cursor: pointer;
    padding: 10px;
    text-align: center;
}

.emoji-option:hover {
    background-color: #f0f0f0;
    /* Optional hover effect */
    border-radius: 8px;
}

.emoji-preview {
    font-size: 4em;
    margin-top: 15px;
}

.large-emoji-button {
    font-size: 3em;
    /* Triple the previous size */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.large-emoji-button:hover {
    background-color: #f0f0f0;
    /* Optional hover effect */
    border-radius: 8px;
}


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

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    grid-template-rows: repeat(2, auto);
    /* 2 rows */
    gap: 20px;
    /* Space between emojis */
    justify-content: center;
    margin-bottom: 20px;
}
/*---- no Phone Button ----*/
.no-phone-button {
    background-color: grey;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: not-allowed;
    font-size: 14px;
}

.no-phone-button:hover {
    background-color: #c82333;
    cursor: not-allowed;
}
/* Centered card style for provider details */
.centered-card {
    margin: 0 auto; /* Horizontally centers the card */
}

/* Centered name */ 
.centered-name {
    text-align: center; /* Centers the provider name and specialty */
    margin-bottom: 15px; /* Add some spacing below for better visual separation */
}

.provider-detail-outer-container{
    display: flex;
    flex-direction: column;
    height: 100%; /* Full height to allow proper flex behavior */
    gap: 20px; /* Space between top provider detail and visit cards */
}
/* Provider detail container taking the top section */
.provider-detail-container {
    flex: 0 1 auto; /* Don't allow provider card to grow, take content height */
    display: flex;
    justify-content: center; /* Centers content horizontally */
    width: 100%;
}

/* Provider detail card */
.provider-detail-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: var(--blue-border); 
    position: relative; /* Important for the edit icon positioning */
    width: 100%; /* Ensure it takes the full width */
    box-sizing: border-box;
}

.provider-address {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

.detail_data.alignleft {
    text-align: left;
}

/* Visit card container with padding */
.visit-card-container {
    display: flex;
    flex-direction: column;
    padding: 20px; /* Add padding inside visit-card containers */
    border: 1px solid #ccc; /* Optional: Add a border for better visual separation */
    border-radius: 5px; /* Optional: Add rounded corners */
    background-color: #f9f9f9; /* Optional: Add a background color */
    width: 100%; /* Ensure it takes the full width */
    gap: 15px;
}

/* Styling for each visit card */
.visit-card {
    background-color: #ffffff;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: 1px solid #ddd;
}

/* Header of the visit card */
.visit-card-header {
    font-weight: bold;
    color: black;
    font-size: 18px;
}

.no-visits-message {
    font-size: 16px;
    color: gray;
    text-align: center;
}

/* Phone button container with fixed bottom positioning */
.phone-button-container {
    padding: 0;
    background-color: transparent; /* Remove background color */
    text-align: center;
    position: fixed;
    bottom: 10px; /* Keep the button at the very bottom with a slight margin */
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Styling for the call button */
.call-button,
.no-phone-button {
    padding: 15px; /* Padding for better touch target size */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    width: calc(100% - 30px);
    margin: 0 auto;
    max-width: 400px; /* Prevent button from becoming too large */
    display: block;
}

.call-button {
    background-color: green;
}

.no-phone-button {
    background-color: gray;
    cursor: not-allowed;
}

.call-button:hover,
.no-phone-button:hover {
    opacity: 0.9; /* Slight opacity change for feedback on hover */
}
.newTopLevelConfirmationContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}
.newTopLevelConfirmationContent {
    color: red;
    font-size: 25px;
}
.saving-boat-scene {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}
.boat-scene-svg {
    width: 230px;
    height: 130px;
    overflow: visible;
}
.boat-scene-svg .water {
    fill: #0f4d92;
    opacity: 0.18;
}
.boat-scene-svg .sun {
    fill: #ffb400;
    opacity: 0.9;
}
.boat-scene-svg .island {
    fill: #d6a85c;
}
.boat-scene-svg .island-shadow {
    fill: #c08b3c;
    opacity: 0.9;
}
.boat-path {
    transform: translate(12px, 96px);
    animation: boat-sail 3.4s ease-in-out infinite;
}
.boat {
    animation: boat-bob 1.8s ease-in-out infinite;
    transform-origin: center;
}
.boat-hull {
    fill: #d96b2b;
    stroke: #8b3e16;
    stroke-width: 1.5;
}
.boat-sail {
    fill: #fdfdfd;
    stroke: #d4d4d4;
    stroke-width: 1;
}
.boat-mast {
    fill: #8b3e16;
}
.boat-window {
    fill: #0f4d92;
    stroke: #f1f5ff;
    stroke-width: 1;
}
.wave {
    fill: none;
    stroke: #0f4d92;
    stroke-width: 2;
    opacity: 0.6;
    animation: wave-drift 2.8s ease-in-out infinite;
}
.wave-2 {
    opacity: 0.35;
    animation-delay: 0.6s;
}
/* Fallback dots if SVG fails to render */
.saving-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.saving-dot {
    width: 10px;
    height: 10px;
    background-color: #ffb400;
    border-radius: 50%;
    animation: saving-dots 1s infinite;
}
.saving-dot:nth-child(2) { animation-delay: 0.1s; }
.saving-dot:nth-child(3) { animation-delay: 0.2s; }
@keyframes saving-dots {
    0%, 100% { transform: scale(0.6); }
    50% { transform: scale(1.4); }
}
@keyframes boat-sail {
    0% { transform: translate(12px, 96px); }
    50% { transform: translate(150px, 92px); }
    100% { transform: translate(12px, 96px); }
}
@keyframes boat-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes wave-drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}
.color-selector-overlay {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333333;
}
.color-picker-outer-container {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 20px;
    border: 1.5px solid #aaa;
    border-radius: 20px;
}
.color-picker-predefined-container {
    display: grid;
    grid-template-columns: repeat(6, 40px);
    justify-content: center;
    gap: 10px;
    margin: 20px 20px;
}
.color-tiles { /* predefined tiles */
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
}
#customColorPicker {
    width: 45px;
    height: 45px;
}
.select-color-buttons-container {
    display: flex;
    gap: 20px;
    padding: 10px;

}
.select-color-button {
    flex: auto;
    padding: 10px;
    font-size: 16px;
    color: black;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}
.preferences-table {
    font-size: 16px;
    border-spacing: 5px 10px;
}

.preferences-table td {
    text-align: left;
}

.preferences-label {
    font-weight: bold;
}

/* Styles for the new vaccination record screen */
.vaccination-record-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: var(--blue-border);
    margin: 20px;
}

.vaccination-record-header {
    font-size: 24px;
    font-weight: bold;
    color: var(--highlight-blue);
    margin-bottom: 20px;
}

.vaccination-record-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vaccination-record-form label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.vaccination-record-form input,
.vaccination-record-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.vaccination-record-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.vaccination-record-form button:hover {
    background-color: var(--highlight-blue);
}

.vaccination-record-list {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

.vaccination-record-item {
    background-color: white;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: var(--box-shadow);
}

.vaccination-record-item h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.vaccination-record-item p {
    font-size: 16px;
    color: #555;
    margin: 5px 0;
}

.vaccination-group-container {
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.related-vaccine {
    background-color: #e0f7fa; /* Light cyan background for related vaccines */
}
.emoji {
    font-size: 1.3em;
    position: relative;
    top: -2px; /* Moves the icon up by 3 pixels */
}

.vaccination-container {
    background-color: #f9f9f9;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: var(--blue-border);
}
  /* language css  */

  .lang_saveButton {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

.lang_cancelButton {
    background-color: #f44336; /* Red */
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}
.popup_error {
    border: 20px solid #E15C86 !important;
}
.popup_warning {
    border: 20px solid #EEC16A !important;
}
.radio-group-vert {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.noRecordsFound {
    color: black;
    font-size: 16px;
    text-align: center;
    font-style: italic;
    margin-top: 50px;
}

.search-section {
  margin-top: 20px;
}

.search-section label {
  display: block;
  margin-bottom: 6px;
}

.search-section input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.search-section button {
  background-color: #1e50a2;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

.search-section button:hover {
  background-color: #133d82;
}

.search-results {
  background-color: #fff;
  max-height: 200px; /* Limit the height of the results */
  overflow-y: auto; /* Add vertical scrolling if results exceed the height */
  position: absolute;
  z-index: 1000;
  width: 100%;
  box-shadow: none; /* Removed shadow */
  border: none; /* Removed border */
}

.search-results div {
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.search-results div:hover {
  background-color: #f0f0f0;
}

#conditions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#conditions-table th, #conditions-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

#conditions-table th {
  background-color: #f9f9f9;
  font-weight: bold;
}
