@import "./responsive.css";
@import "./animation.css";

/* Apply these styles when the data-theme attribute is set to "light" */
[data-theme="light"] {
  /* Define the color scheme for the light theme */
  color-scheme: light;

  /* Info color - used for informational messages */
  --in: 72.06% 0.191 231.6;

  /* Success color - used for success states or notifications */
  --su: 64.8% 0.15 160;

  /* Warning color - used for warnings or alerts */
  --wa: 84.71% 0.199 83.87;

  /* Error color - used for error states or messages */
  --er: 71.76% 0.221 22.18;

  /* Primary color - main brand or theme color */
  --pc: 100% 0 0;

  /* Accent color - used for highlighting elements */
  --ac: 15.352% 0.0368 183.61;

  /* Text color for info, success, warning, and error states */
  --inc: 0% 0 0; /* Info text color */
  --suc: 0% 0 0; /* Success text color */
  --wac: 0% 0 0; /* Warning text color */
  --erc: 0% 0 0; /* Error text color */

  /* Border radius settings */
  --rounded-box: 1rem; /* Border radius for boxes */
  --rounded-btn: 15px; /* Border radius for buttons */
  --rounded-badge: 1.9rem; /* Border radius for badges */

  /* Animation settings */
  --animation-btn: 0.25s; /* Animation duration for buttons */
  --animation-input: 0.2s; /* Animation duration for inputs */

  /* Button focus behavior */
  --btn-focus-scale: 0.95; /* Button scale when focused */

  /* Border settings */
  --border-btn: 1px; /* Border thickness for buttons */

  /* Tab settings */
  --tab-border: 1px; /* Border thickness for tabs */
  --tab-radius: 0.5rem; /* Border radius for tabs */

  /* Primary color for the theme */
  --p: 51.82% 0.0924 148.75;

  /* Secondary color for the theme */
  --s: 69.71% 0.329 342.55;

  /* Secondary text color */
  --sc: 98.71% 0.0106 342.55;

  /* Accent color for highlights */
  --a: 76.76% 0.184 183.61;

  /* Neutral color - often used for text or background */
  --n: 32.1785% 0.02476 255.701624;

  /* Neutral text color */
  --nc: 89.4994% 0.011585 252.096176;

  /* Base background colors */
  --b1: 100% 0 0; /* Base background (primary level) */
  --b2: 96.1151% 0 0; /* Base background (secondary level) */
  --b3: 92.4169% 0.00108 197.137559; /* Base background (tertiary level) */

  /* Base text color */
  --bc: 27.8078% 0.029596 256.847952;
}

/* Firefox (uncomment to work in Firefox, although other properties will not work!)  */
/** {
  scrollbar-width: thin;
  scrollbar-color: #397524 #DFE9EB;
}*/

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
  height: 10px;
  width: 5px;
}
*::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #dfe9eb;
}

*::-webkit-scrollbar-track:hover {
  background-color: #b8c0c2;
}

*::-webkit-scrollbar-track:active {
  background-color: #b8c0c2;
}

*::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #397524;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #62a34b;
}

*::-webkit-scrollbar-thumb:active {
  background-color: #62a34b;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  font-size: 18px;
  background: #fff;;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next ,
.swiper-button-prev {
  display: none !important;
}

.input {
  border-width: 2px;
  border-radius: 15px;
}

.btn-secondary {
  background: #3f774a21;
  border-color: #3f774a00;
  color: #3F774A;
  
  &:hover {
    background: #3f774a46;
    border-color: #3f774a00;
  }
}

input {
  font-size: 18px !important;
}

textarea {
  resize: none !important;
}

.audio-player {
  width: 280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 50px;
}

.play-btn {
  background-color: var(--p);
  border: none;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: white;
}

#audio-equalizer {
  margin-top: 10px;
  border: 1px solid #ddd;
}

.bg-right {
  max-width: 600px;
  height: 100dvh;
  background: url("../img/bg-right.png") 0% / contain no-repeat;
  position: relative;
}

.box-style {
  /* Rectangle 4 */
  background: #ffffff;
  box-shadow: 48px 0px 100px rgba(17, 12, 46, 0.15);
  border-radius: 20px;
  overflow: auto;
}

#audio-waveform {
  --proggress-audio: 0%;
  transition: 0.5s ease;
  width: var(--proggress-audio);
  padding: 2px;
  background: #3f774a;
  position: absolute;
  margin-right: auto;
  z-index: 10;
  left: 0;
  right: auto;
}

#audio-waveform-line {
  width: 100%;
  padding: 2px;
  background: #a5a5a5;
  position: absolute;
  margin-right: auto;
}

/* #audio-waveform::before {
  content: "";
  position: absolute;
  right: 0px;
  width: 10px;
  height: 10px;
  top: 50%;
  border-radius: 50px;
  transform: translateY(-50%);
  background: #3f774a;
} */

.steps.custom-step .step {
  grid-template-rows: 100px 1fr;
}

.steps.custom-step .step::after {
  font-size: 40px;
  color: #000000;
  width: 73px;
  height: 73px;
  font-weight: 500;
}

.steps.custom-step .step {
  font-weight: 600;
}

.steps.custom-step .step::after {
  color: #595959;
}

.steps.custom-step .step.step-primary::after {
  color: #000000;
}

.steps.custom-step .step-primary + .step-primary:before,
.steps .step:after {
  color: #595959;
}

.steps.custom-step .step-primary + .step-primary:before,
.steps .step-primary:after {
  background: #93983c;
  height: 1px;
}

.steps .step:before {
  height: 1px;
}

/* From Uiverse.io by escannord */
.radio-input input:not(.not-style) {
  display: none;
}

.radio-input label:not(.not-style) {
  --border-color: #dde2f1;

  border: 2px solid var(--border-color);
  border-radius: 15px;
  margin: 0px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  cursor: pointer;
  padding-bottom: 40px;

  @media (max-width: 768px) {
    margin: 0;
  }
}

.radio-input input:checked + label {
  --border-color: #3f774a;
  border-color: var(--border-color);
  border-width: 2px;
  background: #eef6f0;
}
.radio-input label:hover {
  --border-color: #3f774a;
  border-color: var(--border-color);
}

.radio-input {
  display: flex;
  align-items: center;
}

.circle {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgb(228, 227, 240);
  margin-left: 0.5rem;
  position: relative;
}

.radio-input input:checked + label span.circle::before {
  content: "";
  display: inline;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #3f774a;
  width: 15px;
  height: 15px;
  border-radius: 50%;
}
.text {
  display: flex;
  align-items: center;
}

.price {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-weight: bold;
}

.small {
  font-size: 10px;
  color: rgb(136, 138, 139);
  font-weight: 100;
}

.info {
  position: absolute;
  display: inline-block;
  font-size: 11px;
  background-color: rgb(31, 236, 123);
  border-radius: 20px;
  padding: 1px 9px;
  top: 0;
  transform: translateY(-50%);
  right: 5px;
}

.btn-gradiant-primary {
  background: linear-gradient(90deg, #3f774a 0%, #93983c 100%);
  color: #fff;
}

.btn-error {
  background: #e5bdbd !important;
  color: #cc0303;
  border: none;
}

.input-custom {
  cursor: text;
  height: auto;
  border-width: 1px !important;

  select {
    outline: none;
    width: 100%;
  }

  h3,
  label {
    position: relative;
    margin-top: 4%;
    transition: 0.2s ease;
  }
  input,
  select,
  textarea {
    outline: none !important;
    margin-top: -7%;
    padding-bottom: 3%;
    opacity: 0;
    transition: all 0.2s ease;
    width: 100%;
    border: 0 !important;
  }

  &:focus-within {
    h3,
    label {
      position: relative;
      margin-top: 0%;
    }
    input,
    select,
    textarea {
      margin-top: 0%;
      padding-bottom: 0%;
      opacity: 1;
    }
  }

  &.filled {
    h3,
    label {
      position: relative;
      margin-top: 0%;
    }
    input,
    select,
    textarea {
      margin-top: 0%;
      padding-bottom: 0%;
      opacity: 1;
    }
  }
}

.grid-cols-2 .input-custom {
  h3,
  label {
    position: relative;
    margin-top: 2%;
    padding-bottom: 2%;
    transition: 0.2s ease;
  }
  input,
  select,
  textarea {
    outline: none !important;
    margin-top: -7%;
    padding-bottom: 3%;
    opacity: 0;
    transition: all 0.2s ease;
    width: 100%;
    border: 0 !important;
  }

  &:focus-within {
    h3,
    label {
      position: relative;
      margin-top: 0%;
      padding-bottom: 0%;
    }
    input,
    select,
    textarea {
      margin-top: 0%;
      padding-bottom: 0%;
      opacity: 1;
    }
  }

  &.filled {
    h3,
    label {
      position: relative;
      margin-top: 0%;
      padding-bottom: 0%;
    }
    input,
    select,
    textarea {
      margin-top: 0%;
      padding-bottom: 0%;
      opacity: 1;
    }
  }
}

.grid-cols-3 .input-custom {
  h3,
  label {
    position: relative;
    margin-top: 2%;
    padding-bottom: 2%;
    transition: 0.2s ease;
  }
  input,
  select,
  textarea {
    outline: none !important;
    margin-top: -7%;
    padding-bottom: 3%;
    opacity: 0;
    transition: all 0.2s ease;
    width: 100%;
    border: 0 !important;
  }

  &:focus-within {
    h3,
    label {
      position: relative;
      margin-top: 0%;
      padding-bottom: 0%;
    }
    input,
    select,
    textarea {
      margin-top: 0%;
      padding-bottom: 0%;
      opacity: 1;
    }
  }

  &.filled {
    h3,
    label {
      position: relative;
      margin-top: 0%;
      padding-bottom: 0%;
    }
    input,
    select,
    textarea {
      margin-top: 0%;
      padding-bottom: 0%;
      opacity: 1;
    }
  }
}

jdp-container .jdp-btn-close,
jdp-container .jdp-btn-empty,
jdp-container .jdp-btn-today {
  background-color: #3f774a !important;
  padding: 10px !important;
  border-radius: 15px !important;
}

jdp-container .jdp-day-name.selected,
jdp-container .jdp-day.selected {
  background-color: #3f774a !important;
  border-radius: 10px  !important;
}

jdp-container .jdp-day:not(.disabled-day):hover {
  border-radius: 10px !important;
}

jdp-container {
  border-radius: 15px !important;
}

jdp-container .jdp-day-name.today,
jdp-container .jdp-day.today {
  border-radius: 10px !important;
}

jdp-container .jdp-icon-minus,
jdp-container .jdp-icon-plus {
  border-radius: 10px !important;
}

jdp-container .jdp-day-name {
  background: #3f774a !important;
  color: #fff !important;
}

jdp-container .jdp-days {
  padding: 10px !important;
}

jdp-container .jdp-day-name:nth-child(1) {
  border-radius: 0 10px 10px 0 !important;
}

jdp-container .jdp-day-name.holly-day {
  border-radius: 10px 0 0 10px !important;
}

/* From Uiverse.io by spj2401Dev */

.button-group input[type="radio"] {
  display: none;
}

.button-group label {
  display: inline-block;
  padding: 10px 30px;
  cursor: pointer;
  border: 1px solid #397524;
  background-color: #3a752400;
  color: #0d1a08;
  border-radius: 15px;
  transition: all ease 0.2s;
  text-align: center;
  flex-grow: 1;
  flex-basis: 0;
  font-size: 13px;
  margin: 5px;
  transition: 0.2s ease;
  font-weight: 600;
  text-align: center;
  &:active {
    transform: scale(0.9);
  }
}

.button-group input[type="radio"]:checked + label {
  border: 1px solid #397524;
  background-color: #3a75243c;
  color: #397524;
}

fieldset {
  border: 0;
  display: flex;
}

.auto-custom input {
  margin-top: -10%;
}

.auto-custom {
  &:focus-within {
    input,
    select {
      margin-top: -6% !important;
      padding-top: 5% !important;
      opacity: 1;
    }
  }

  &.filled {
    input,
    select {
      margin-top: -6% !important;
      padding-top: 5% !important;
      opacity: 1;
    }
  }
}

progress[value]::-webkit-progress-value {
  transition: all 1s;
}

.btn.swiper-button-disabled {
  --tw-border-opacity: 0;
  background-color: var(--fallback-n, oklch(var(--n) / var(--tw-bg-opacity)));
  --tw-bg-opacity: 0.2;
  color: var(--fallback-bc, oklch(var(--bc) / var(--tw-text-opacity)));
  --tw-text-opacity: 0.2;
}

.checkbox2 {
  cursor: pointer;
  appearance: none;
  width: 30px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid black;
  position: relative;
  transition: all 0.2s ease-in-out;
}

.checkbox2::before {
  font-family: "Quicksand", sans-serif;
  position: absolute;
  bottom: -4px;
  left: 1px;
  content: "✔";
  font-size: 40px;
  color: #397524;
  transform: scale(0);
  transition: all 0.2s ease-in-out;
}

.checkbox2:checked::before {
  animation: zoom2 0.5s ease-in-out;
  transform: scale(1);
}

@keyframes zoom2 {
  0% {
    transform: scale(0);
  }

  20% {
    transform: scale(1.5);
  }

  40% {
    transform: scale(0.5);
  }

  50% {
    transform: scale(1);
  }

  70% {
    transform: scale(1.2);
  }

  90% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

#upload-area {
  transition: background-color 0.3s ease;
}
#upload-area.drag-over {
  background-color: #f3f3f3;
  border-color: #3F774A;
}

.preview-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
  position: relative;
}
.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  cursor: pointer;
}

table {
  border-collapse: separate; 
  border-spacing: 0; 
  text-align: center;
}

thead th {
  border-radius: 0px 0px 0px 0px;
  background-color: #3f774a10;
  padding: 20px !important; 
  text-align: center;
}

tbody td {
  text-align: center;
}

thead th:first-child {
  border-radius: 0 20px 20px 0; 
}

thead th:last-child {
  border-radius: 20px 0 0 20px;
}

.menus-panel a {
  transition: 0.3s ease;
  svg path{
    transition: 0.3s ease;
  }
  span {
    transition: 0.3s ease;
  }
}

.menus-panel a.active {
  background: #fff;
  svg path{
    fill: #3F774A;
  }
  span {
    color: #3F774A;
  }
}