@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  .header {
    background: #f1f1f1;
    box-shadow: 7px 7px 7px 0px #ffffff inset, -7px -7px 7px 0px #ebebeb inset,
      7px 7px 15px 0px #dddddd, 7px 7px 7px 0px #ffffff6e inset,
      -7px -7px 7px 0px #ebebeb6b inset;
  }
  .back_btn {
    background: #f1f1f1;
    width: 39px;
    height: 39px;
    display: grid;
    place-content: center;
    border-radius: 8px;
    box-shadow: 6px 6px 6px 0px #ffffff inset, 3px 3px 8px 0px #9e9e9e,
      -6px -6px 6px 0px #ebebeb inset;
  }
  .roboto_font {
    font-family: "Roboto", sans-serif;
  }
  .prev_btn {
    background: #f1f1f1;
    box-shadow: 6px 6px 6px 0px #ffffff inset, -6px -6px 6px 0px #ebebeb inset,
      3px 3px 8px 0px #dddddd;
  }
  .video_title {
    text-wrap: balance !important;
  }
  .heading {
    width: 400px;
    height: 28px;
    font-family: "Roboto";
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    text-align: center;
    color: #e44672;
  }

  .description {
    width: 410px;
    height: 54px;
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #000000;
  }

  body {
    width: 100vw;
    height: 100vh;
    background-color: white !important;
  }
  .hide-scrollbar::-webkit-scrollbar {
    display: none;
  }
  .home_wrapper::-webkit-scrollbar {
    display: none;
  }
  .books_container::-webkit-scrollbar {
    display: none;
  }
  .current_day_container::-webkit-scrollbar {
    display: none;
  }
  .dashboard_layout {
    @apply min-h-screen font-sans text-lg text-neutral-600;

    display: grid;
    place-content: center;
    grid-template-columns: min-content [stack] 1fr;

    & > :is(aside, div) {
      grid-area: stack;
    }
  }

  svg {
    @apply mx-auto w-5 h-6 aspect-square;
  }

  .btn {
    margin: 0 5px;
    padding: 7px 17px;
    border: none;
    background-color: #e44672;
    color: #ffffff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
  }
  .chanting-btn {
    @apply bg-gray-400;
    margin: 0 5px;
    padding: 7px 17px;
    border: none;
    background-color: #e44672;
    color: #ffffff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
  }
  .chanting_animation:before {
    position: absolute;
    content: "";
    height: calc(100% + 17px);
    width: calc(100% + 17px);
    border: 3px dashed orange;
    top: -8.5px;
    left: -8.5px;
    border-radius: inherit;
    animation: spin 10s linear infinite;
  }
  .btn:hover {
    background-color: #ffffff;
    color: #e44672;
    border: 0.5px ridge #e44672;
  }

  .chanting_animation {
    @apply bg-[#F2780B] flex items-center justify-center relative font-bold text-white rounded-full text-center aspect-square w-[60px];
  }
  .chanting_animation_active {
    @apply bg-gray-500 flex items-center justify-center relative font-bold text-white rounded-full text-center aspect-square w-[60px];
  }
  .animate-ripple1 {
    animation: ripple 2s linear infinite;
    border: 4px solid #f2780b;
    background-color: transparent !important;
  }
  .animate-ripple2 {
    animation: ripple 2s linear 1.5s infinite;
    border: 4px solid rgb(223 128 224 / 0.7);
    background-color: transparent !important;
  }
  .animate-ripple3 {
    animation: ripple 2s linear 1s infinite;
    border: 4px solid #f2780b;
    background-color: transparent !important;
  }
  .animate-text {
    animation: fadeIn 7s infinite;
  }
  .chanting_animation_active:before,
  .chanting_animation_active:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50%;
  }

  /* .chanting_animation_active:before {
  animation: ripple 2s linear infinite;
}

.chanting_animation_active:after {
  animation: ripple 2s linear 1s infinite;
} */

  @keyframes ripple {
    0% {
      transform: scale(1);
      border-width: 0px;
    }
    100% {
      transform: scale(5);
      opacity: 0;
      border-width: 8px;
    }
  }
  @keyframes spin {
    100% {
      transform: rotateZ(360deg);
    }
  }

  @keyframes fadeIn {
    0% {
      opacity: 0;
      clip-path: inset(0 100% 0 0);
    }
    50% {
      opacity: 1;
      clip-path: inset(0 0 0 0);
    }
    100% {
      opacity: 0;
      clip-path: inset(0 100% 0 0);
    }
  }

  .locked {
    filter: brightness(0.9) opacity(0.65);
    pointer-events: none;
  }

  .main_wrapper::-webkit-scrollbar {
    display: none;
  }
  .login_form_wrapper {
    @apply flex flex-col justify-between h-full w-full mx-auto;
  }
  #form {
    @apply flex flex-col items-center pb-5 px-4 gap-3 w-full max-w-sm m-auto mt-2;
  }

  input {
    @apply bg-transparent;
  }
  input:focus-visible {
    @apply outline-none;
  }

  .mobile_number_field_wrapper {
    @apply w-full h-10 flex items-center justify-between;
  }
  .form_control {
    @apply rounded-xl w-full h-12;
    background-color: #f6f6f6;
    /* box-shadow: 3px 3px 4px 0px #bfb8b8b2 inset,
      -3px -3px 4px 0px #ffffff8c inset; */
  }

  /* .form_control:nth-child(2) {
    @apply w-1/6 left-0 text-center p-0 text-primary-pink shadow-none bg-transparent border-none;
  } */
  .error_message {
    @apply text-red-400 text-xs font-semibold text-right;
  }
  #auth_layout {
    @apply relative;
    & .prev_btn {
      @apply rounded-lg w-10 aspect-square grid place-content-center absolute top-0 left-0 translate-x-1/2 translate-y-1/2 bg-white z-50;
      box-shadow: 2px 2px 8px 1px rgb(10 99 169 / 16%),
        1px 0px 5px -1px rgb(0 0 0 / 40%);
    }
  }
  .phoneNumber_control {
    @apply rounded-lg w-full h-10 flex items-center justify-end;
    box-shadow: inset 0px 1px 7px rgb(0 0 0 / 7%),
      inset -10px 0px 12px rgb(255 255 255);

    & .phone_number_field_wrapper {
      @apply w-full h-10 flex items-center justify-between;
    }
  }
  .error_toast {
    @apply bg-red-500 text-white border !border-white;
  }

  .signee_status {
    @apply h-16 px-7 rounded-md relative bg-gray-200 text-black flex items-center justify-center font-semibold;
  }
  .signee_current_status {
    @apply bg-primary-pink relative text-white;
  }
  .schedule_Title {
    position: absolute;
    width: 170px;
    height: 66.58px;
    left: 24px;
    top: 24px;

    font-family: "Tiro Gurmukhi";
    font-style: normal;
    font-weight: 400;
    font-size: 27px;
    line-height: 34px;
    letter-spacing: -0.408px;
    background: linear-gradient(
      114.54deg,
      #e44672 0%,
      rgba(228, 70, 114, 0.42) 89.58%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* text-fill-color: transparent;   */
  }

  .schedule_Planner {
    position: absolute;
    width: 106px;
    height: 35.58px;
    left: 24px;
    top: 108px;

    font-family: "Tiro Gurmukhi";
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.408px;
    background: linear-gradient(
      114.54deg,
      #e44672 0%,
      rgba(228, 70, 114, 0.42) 89.58%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* text-fill-color: transparent; */
  }

  .book_carousel_controls {
    display: flex;
    width: 100%;
    height: 100px;
    background-color: red;
  }

  /* Add this CSS to your styles */
  @media (min-width: 768px) {
    .responsive-container {
      width: 100vw;
      max-width: 768px;
    }

    .card-container {
      max-width: 700px;
    }
  }

  @media (max-width: 767px) {
    .responsive-container {
      width: 100vw;
      height: 100%;
    }

    .card-container {
      max-width: 350px;
      height: 100%;
    }
  }

  .date-picker-modal {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 768px;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease-in-out;
    transform: translateY(100%);
    z-index: 1000;
  }

  .date-picker-modal.slide-up {
    transform: translateY(0);
  }

  .date-picker-modal.slide-down {
    transform: translateY(100%);
  }
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  50% {
    transform: translateX(10px);
  }
  75% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}

.shake {
  animation: shake 0.3s ease;
}

.country_code_select {
  border: none;
  background: transparent;
  font-size: 16px;
  color: #e44672;
  outline: none;
  cursor: pointer;
  width: 40%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
