body {
    font-family: 'Roboto', sans-serif !important;
    margin: 0;
    min-width: 550px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FAFAFA !important;
    background-image: url('/static/admissions rocket watermark.png'); /* update the path */
    background-repeat: no-repeat;
    background-position: center calc(100% - 30px);
    background-size: 300px auto; /* control the logo size here */
    background-attachment: fixed; /* optional: keeps it in place while scrolling */
    color: #333;
}

button {
    transition: all 0.2s ease;
}

button:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

/* Remove blinking caret for everything except inputs, textareas, and contenteditable elements */
*:not(input):not(textarea):not([contenteditable]) {
    caret-color: transparent;
}

input, textarea, [contenteditable] {
    caret-color: auto !important;
}

header {
    background-color: #3b5998;
    color: white;
    padding: .5em 0em;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

html, body {
    height: 100%;
}

footer {
    margin-top: auto;
    padding: 1em 2em;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Outer container for the entire multi-value field */
.form-group.multi-value-group {
  margin-bottom: 1rem;
  display: block; /* Make sure it stacks nicely */
}

/* Label row that holds label and + button on its own line */
.label-row {
  display: inline-flex; /* or flex */
  align-items: center;
  margin-bottom: 0.5rem;
}

/* The label itself */
.label-row label {
  margin-right: 0.5rem;
  font-weight: 600;
}

/* Container for all the dynamic rows of inputs */
.multi-value-container {
  display: flex;
  flex-direction: column;
}

/* Each individual row of input + minus button */
.value-row {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* The text input within each row */
.value-row input {
  flex: 1;
  min-width: 0; /* so the input can shrink if space is constrained */
  margin-right: 0.5rem;
  padding: 0.3rem;
}

/* A general class for our small circle buttons (+ and –) */
.circle-button {
  appearance: none;     /* remove default browser styling */
  background: #fafafa;  /* or whatever color you want */
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 0.25rem;     /* small side margin */
  cursor: pointer;
  font-size: 16px;
  line-height: 1;        /* so the symbol stays centered */
}

#info-display span {
    display: block;
    margin-bottom: 0.5em;
}

.gear-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #3b5998;
}

#info-edit label {
    display: block;
    margin: 0.5em 0;
    color: #333;
}

main {
    width: 80%;
    max-width: 900px;
    margin: 2em 0;
    background: white;
    padding: 2em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.patient-item {
    padding: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
}

.patient-item:hover {
    background-color: #f0f0f0;
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.admission-nav {
  display: flex;
    position: relative;
    align-items: center;
  height: 60px;             /* Adjust as desired */
  background-color: #3b5998;
    overflow: hidden;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo {
  margin-left: 20px;
  height: 100px;             /* Keeps it from making the nav taller */
}

.admission-nav ul {
  display: inline-flex;      /* So text-align: center can position it properly */
  justify-content: center;
  align-items: center;
  list-style-type: none;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0;
  transform: translateX(-40px); /* shift left by 10px */
  height: 100%;             /* So the items also center vertically if needed */
}

.admission-nav li {
    margin: 0 15px;
    white-space: collapse;
    z-index: 5;
}

.admission-nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.admission-nav a:hover {
    background-color: #2d4373;
}

.admission-nav a.active {
    background-color: white;
    color: #3b5998;
}

/* Ensure accordion headers and items fit within the modal */
  .modal .accordion-header {
    display: flex; /* Use flexbox for alignment */
    flex-wrap: nowrap; /* Prevent wrapping */
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Distribute space between button and checkbox */
    max-width: 100%; /* Ensure no overflow */
    padding: 0.5rem 1rem; /* Standardize padding */
  }

  /* Accordion button: Allow it to shrink but prioritize space */
  .modal .accordion-button {
    flex: 1 1 auto; /* Grow and shrink as needed, but take up available space */
    overflow: hidden; /* Prevent overflow */
    text-overflow: ellipsis; /* Handle long text gracefully */
    white-space: nowrap; /* Prevent text wrapping */
    min-width: 0; /* Allow shrinking below default min-width */
  }

  /* Checkbox and label: Prevent them from shrinking excessively */
  .modal .accordion-header input[type="checkbox"] {
    flex: 0 0 auto; /* Do not shrink or grow */
    margin-right: 0.5rem; /* Add space between checkbox and label */
  }

  .modal .accordion-header label {
    flex: 0 0 auto; /* Do not shrink or grow */
    font-size: 0.9rem; /* Slightly smaller font for balance */
    margin-bottom: 0; /* Avoid extra spacing */
  }

.multi-value-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.multi-value-wrapper input {
    flex-grow: 1;  /* Ensures the input field takes up most of the space */
}

.remove-value-button {
    margin-left: 10px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

#admin-name-display {
    font-weight: bold;
    color: #2c3e50;
}
.admin-info-container {
    text-align: center;
}
.patient-list {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    user-select: none;
}

.patient-list tr {
    height: 35px; /* Adjust as needed */
}

.patient-list th, .patient-list td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
    line-height: 1.2;
}

.patient-list th {
    background-color: #f2f2f2;
    text-align: left;
}

.patient-list td .patient-name {
    font-weight: bold;
}

.patient-list td .patient-details {
    display: flex;
    justify-content: space-between;
}

.patient-list td > div {
    display: flex;
    align-items: center;
    height: 100%;
}

#email-popup .popup-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
}

#email-popup .popup-content label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

#email-popup .popup-content input {
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#user-info select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
}

#admin-info-text {
    font-family: 'Helvetica Neue', sans-serif;
    flex-wrap: wrap;
    font-size: 1.1em;
    color: #4a4a4a;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

#patient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#awaiting-signatures-list {
    list-style-type: none;
    padding: 0;
}

.patient-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
}

.patient-actions {
    margin-top: 5px;
    flex-wrap: wrap;
}

.patient-actions-column {
    display: flex;
    margin-left: auto;
    align-items: center;
}


#open-form-button:hover {
    background-color: #e0e0e0 !important;
}

.patient-actions button {
    margin-right: 10px;
    height: 30px;
    padding: 0px 10px;
    background-color: #3b5998;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    flex: none;
}

.patient-actions button:hover {
    background-color: #2d4373;
}

#info-edit div {
    margin-bottom: 10px;
}

#info-edit input {
    width: calc(100% - 120px);
    padding: 5px;
}

#info-edit button {
    width: 50px;
    padding: 5px;
    margin-left: 5px;
}

#user-info {
    background: white;
    padding: 15px;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
    width: 250px;
    border: 1px solid #ddd;
    border-right: none;
}

#user-info-container.slide-left {
    transform: translateX(-250px); /* Slide out to the right */
}

#user-info-container {
    position: fixed;
    top: 1em;
    right: -250px;
    display: flex;
    flex-direction: row-reverse;
    z-index: 1000;
}

.facility-info-tab {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background-color: #ffffff;
    padding: 0.5em 0.5em;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #333;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    right: -1px; /* Adjust this value to overlap more or less */
    top: .7em;
    z-index: 1;
    height: 12em; /* Ensure the height adjusts to the content */
}

.facility-info-tab::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 10px 10px 0;
    z-index: -1;
}

.last-column {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Ensure the date and button are aligned */
.last-column .patient-details,
.last-column .remove-btn {
    margin: 0;
}

.remove-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 1em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto !important;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal:not(#email-popup) .modal-content {
    padding: 20px; /* Add your desired padding */
}

.modal:not(#email-popup) .close-modal {
    margin-left: auto;
}

.modal:not(#email-popup) .close {
    margin-left: auto !important;
}

#forms-list {
  list-style: none; /* Remove default bullet points */
  padding: 0;
  margin: 0;
}

#forms-list .form-label {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically align the checkbox and text */
  margin-bottom: 5px; /* Add spacing between items */
  text-align: left;
}

#forms-list input[type="checkbox"] {
  margin-right: 8px; /* Add space between checkbox and text */
}

.required-asterisk {
  color: red;
  margin-left: 5px;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    border: 1px solid #ccc;
    border-radius: 8px !important;
    width: 80%;
    overflow-y: auto;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1em;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

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

label {
    font-weight: bold;
    margin-bottom: 5px;
}

.main input, .main select, .admin-info-container select {
    width: 40%;
    padding: 8px;
    box-sizing: border-box;
}

input, select {
    padding: 8px;
    box-sizing: border-box;
}

#facility-info-form > div {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Optional: Vertically align items */
}

#confirm-remove-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.modal button {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    margin: 10px;
    cursor: pointer;
}

.new-patient-input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    font-size: 14px; /* Increased font size */
    line-height: 1; /* Adjusted line height for better readability */
}

/* Style for the new patient input when focused */
.new-patient-input:focus {
    outline: none; /* Remove the default focus outline */
    border-color: #999; /* Darker grey, but not black */
    box-shadow: 0 0 5px rgba(153, 153, 153, 0.5); /* Optional: adds a subtle glow */
}

.new-patient-input::placeholder {
    font-size: 12px;
    color: #999; /* Optional: adjust placeholder color for better contrast */
}

.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-list {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0;
    margin: 0;
    background-color: #fff;
    list-style-type: none;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.autocomplete-list li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-list li:hover {
    background-color: #e9e9e9;
}
.main-area {
    user-select: none;
}
.logout-button {
    cursor: pointer;
}

.logout-button::after {
    content: attr(data-tooltip);

    top: 2.1em; /* Position below the button */
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}

.logout-button:hover::after {
    opacity: 1;
}
.icon-link {
    cursor: pointer;
    text-decoration: none; /* Remove underline from the link */
}

.tooltip-container {
    position: relative; /* Isolate tooltip behavior */
}

#facility-info-form .multi-value-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#facility-info-form .multi-value-wrapper input {
    flex-grow: 1;  /* Ensures the input field takes up most of the space */
}

#facility-info-form .remove-value-button {
    margin-left: 10px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

/* Style for the save button */
#save-facility-info {
    background-color: #007bff;  /* Change this color if you want a different one */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 20px;  /* Adds some space above the button */
}

/* Add a hover effect for the save button */
#save-facility-info:hover {
    background-color: #0056b3;
}

/* Style for the add-value button */
#facility-info-form .add-value-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

#facility-name-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    padding: 10px;
    margin-bottom: 10px;
}

#facility-address {
    font-size: 18px;
    color: #555;
    padding: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}
#bug-report-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  z-index: 1000;
}

#bug-icon {
  font-size: 18px;
  color: #fff;
  background: linear-gradient(145deg, #4a90e2, #357ab8);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

#bug-icon:hover {
  background: linear-gradient(145deg, #6ab0f1, #4a90e2);
  transform: scale(1.1);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

#bug-report-button {
  background-color: #4a90e2;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#bug-report-container:hover #bug-report-button {
  opacity: 1;
  transform: translateX(0);
}


/* Bug description styling */
#bug-description {
  width: 100%;
  height: 150px; /* Default height */
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical; /* Allows resizing vertically */
  box-sizing: border-box;
}

#bug-modal input {
    margin-bottom: .5em;
}

#bug-modal select {
    margin-bottom: .5em;
}

.close {
  float: right;
  cursor: pointer;
}
/* Close button */
.close-button {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-button:hover {
  color: #000;
}
/* Recipient selection */
.recipient-selection {
  margin-bottom: 20px;
}

.recipient-selection label {
  margin-right: 20px;
  font-weight: bold;
}

.recipient-selection input[type="radio"] {
  margin-right: 5px;
}

/* Recipient content sections */
.recipient-content {
  margin-bottom: 20px;
}

.recipient-content label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.recipient-content input[type="email"],
.recipient-content input[type="text"] {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

/* Forms list */
.forms-list {
  margin-bottom: 20px;
}

.forms-list ul {
  list-style-type: none;
  padding: 0;
}

.forms-list li {
  margin-bottom: 10px;
}

.forms-list label {
  font-weight: normal;
}

.required-asterisk {
  color: red;
  margin-left: 5px;
}



/* Submit button */
#submit-email {
  background-color: #007bff; /* Adjust color as needed */
  color: #fff;
  border: none;
  padding: .3em .5em;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}

#submit-email:hover {
  background-color: #0056b3;
}

.facility-name-display {
    font-family: Raleway, sans-serif;
    color: darkslategray;
    margin-bottom: 12px;
    display: inline-block;
    font-size: clamp(1rem, 4vw, 2.5rem);
    line-height: 1.1;
    max-width: 100%;
    text-align: center;
}