@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&display=swap");

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: "Outfit", sans-serif;
  color: #111827;
  background: #f3f4f6;
  overflow: hidden;
}

/* App layout */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 0 16px;
  flex-shrink: 0;
}

.back-arrow {
  font-size: 20px;
  cursor: pointer;
}

.main-content {
  flex: 1;
  /* overflow-y: auto; */
  padding: 20px;
  background: #f3f4f6;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 10px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.container .title1 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 20px;
}

.form {
  width: 100%;
}

.input-box {
  margin-top: 16px;
}

.input-box label {
  display: block;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.input-box input,
.select-box {
  width: 100%;
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #111827;
  background: #f9fafb;
  transition: border 0.2s, box-shadow 0.2s;
}

.input-box input:focus,
.select-box:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  outline: none;
}

.column {
  display: flex;
  gap: 10px;
}

.input-box.wide {
  flex: 1.2;
}

.input-box.narrow {
  flex: 0.8;
}

.address input {
  margin-top: 5px;
}

.select-box select {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #111827;
}

.div1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.file-upload-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  border: 2px dashed #4f46e5;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-file-label1 {
  border: 2px dashed #10b981;
  color: #10b981;
}

/* .custom-file-label:hover {
  background: #eef2ff;
} */

.upload-icon {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234f46e5'%3E%3Cpath d='M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.upload-icon2 {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg fill='%234f46e5' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h2v2H4V6zm0 5h2v2H4v-2zm0 5h2v2H4v-2zm4-10h12v2H8V6zm0 5h12v2H8v-2zm0 5h12v2H8v-2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.upload-icon1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2310b981' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E");
}


.upload-text {
  white-space: nowrap;
}

.text_or {
  margin: 0 10px;
  font-weight: 600;
  color: #6b7280;
}

#notify {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
  padding: 12px;
  border-radius: 8px;
}

.btn_save {
  display: inline-block;
  width: 100%;
  height: 50px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 30px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn_save:hover {
  background: linear-gradient(90deg, #4338ca, #6d28d9);
}

/* Hide real inputs */
.real-file-input,
.btn_select_test {
  display: none;
}

@media (max-width: 600px) {
  .column {
    flex-direction: column;
  }

  .div1 {
    flex-direction: column;
  }
}

/* default boilerplate to center input */
/* body {
  min-height: 100vh;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vmax;
  box-sizing: border-box;
} */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap");

*,
*:before,
*:after {
  box-sizing: border-box;
}

/* Some basic CSS overrides */
.modal_div {
  line-height: 1.5;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: #2d232e;
  background-color: #c8c0bd;
  z-index: 100;
}

.btn_modal,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

/* End basic CSS override */

* {
  scrollbar-width: 0;
}

*::-webkit-scrollbar {
  background-color: transparent;
  width: 12px;
}

*::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background-color: #ddd;
  border: 4px solid #fff;
}

.modal {
  position: fixed; /* better than absolute for full screen overlay */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  display: none;
  align-items: center;
  justify-content: center;

  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);  /* the blur! */
  -webkit-backdrop-filter: blur(8px); /* for Safari */
}


.modal-container {
  max-height: 90vh;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 30px 0 rgba(#000, 0.25);

  @media (max-width: 600px) {
    width: 90%;
  }
}

.modal-container-header {
  padding: 16px 32px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-container-title {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  font-weight: 700;
  font-size: 1.125;

  svg {
    width: 32px;
    height: 32px;
    color: #750550;
  }
}

.modal-container-body {
  padding: 24px 32px 10px;
  overflow-y: auto;
}

.rtf {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 700;
  }

  h1 {
    font-size: 1.5rem;
    line-height: 1.125;
  }

  h2 {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  h3 {
    font-size: 1rem;
    line-height: 1.5;
  }

  & > * + * {
    margin-top: 1em;
  }

  & > * + :is(h1, h2, h3) {
    margin-top: 2em;
  }

  & > :is(h1, h2, h3) + * {
    margin-top: 0.75em;
  }

  ul,
  ol {
    margin-left: 20px;
    list-style-position: inside;
  }

  ol {
    list-style: numeric;
  }

  ul {
    list-style: disc;
  }
}

.modal-container-footer {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #ddd;
  gap: 12px;
  position: relative;

  &:after {
    content: "";
    display: block;
    position: absolute;
    top: -51px;
    left: 24px;
    right: 24px;
    height: 50px;
    flex-shrink: 0;
    background-image: linear-gradient(to top, rgba(#fff, 0.75), transparent);
    pointer-events: none;
  }
}

.btn_modal {
  padding: 12px 20px;
  border-radius: 8px;
  background-color: transparent;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;

  &.is-ghost {
    &:hover,
    &:focus {
      background-color: #dfdad7;
    }
  }

  &.is-primary {
    background-color: #750550;
    color: #fff;

    &:hover,
    &:focus {
      background-color: #4a0433;
    }
  }
}

.icon-button {
  padding: 0;
  border: 0;
  background-color: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.15s ease;

  svg {
    width: 24px;
    height: 24px;
  }

  &:hover,
  &:focus {
    background-color: #dfdad7;
  }
}

.div_added_test {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 120px;
  min-height: 120px;
  overflow-y: auto;
}

.sep_line{
  margin-top: 15px;
  border-bottom: 1px solid #ddd;
}

.div_sel_test {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.test-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8f8;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.test-item input[type="checkbox"] {
  margin-right: 8px;
}

.test-name {
  flex: 1; /* takes remaining space, pushes price to right */
}

.test-price {
  font-weight: 600;
  color: #333;
}

.test-search-input {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.remove-btn {
  color: #e53935;
  font-weight: bold;
  margin-left: 12px;
  cursor: pointer;
}

.remove-btn:hover {
  color: #b71c1c;
}

.no_of_man_sel_test{
  display: none;
  border-radius: 25px;
  color: white;
  background-color: green;
  padding: 3px;
}

#notify{
  visibility: hidden;
}