@tailwind base;
@tailwind components;
@tailwind utilities;

html {
  direction: rtl;
}

body {
  font-family: irancell;
  margin: 0;
  padding: 0;
  width: 100%;
  direction: rtl;
  overflow-x: hidden !important;
  background: #eceef6;
  font-weight: 300;
  overflow: hidden;
}
html,
body,
#root {
  min-height: 100% !important;
  height: 100%;
}
* {
  outline: none;
  scrollbar-width: auto;
  -ms-overflow-style: auto;
}
*::-webkit-scrollbar {
  display: block;
  width: 5px;
  height: 5px;
}
*::-webkit-scrollbar-thumb {
  background-color: #c9c9c9;
  border-radius: 5px;
}
input::placeholder,
textarea::placeholder {
  color: #888888;
}

@layer components {
  .rowTwoInput {
    @apply flex flex-col sm:flex-row sm:gap-5 gap-5;
  }
  .td {
    @apply px-6 py-4 whitespace-nowrap text-xs;
  }
  .thead {
    @apply h-[69px] bg-white text-sm text-[#8C90A3] rounded-3xl overflow-hidden;
  }
  .tr {
    @apply w-full h-[74px] bg-white border-t border-[#EAEDF5] hover:bg-secondary;
  }
}

tbody tr {
  background-color: white;
}

.thead tr td:first-child {
  border-top-right-radius: 23px;
  /* border-bottom-right-radius: 23px; */
}
.thead tr td:last-child {
  border-top-left-radius: 23px;
  /* border-bottom-left-radius: 23px; */
}
.rmdp-input {
  min-height: 40px;
  border-radius: 12px !important;
  border: 1px solid #d0d0d0 !important;
  font-size: 12px !important;
  width: 100% !important;
  margin: 0px;
  padding-right: 16px !important;
}
.rmdp-container {
  width: 100%;
}
.dltr {
  direction: ltr;
}
.drtl {
  direction: rtl;
}
.otp div {
  width: 100%;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.borderDashed {
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='none' rx='24' ry='24' stroke='%238C90A3' stroke-width='2' stroke-dasharray='6%2C 14' stroke-dashoffset='25' stroke-linecap='square'/%3E%3C/svg%3E");
  border-radius: 24px;
  overflow: hidden;
}

.modalGlass {
  background: rgba(0, 0, 0, 0.436);
  background-blend-mode: multiply;

  backdrop-filter: blur(7px);
}
.modalGlass2 {
  background: rgba(255, 255, 255, 0.502);
  background-blend-mode: multiply;

  /* backdrop-filter: blur(5px); */
}

.modalGlass3 {
  background: rgba(62, 61, 61, 0.2);
  background-blend-mode: multiply;

  backdrop-filter: blur(44px);
}

.rc-rate-star {
  margin-right: 3px !important; /* فاصله بین ستاره‌ها */
}

.overflowX {
  overflow-x: scroll;
  scrollbar-width: none;
}
.overflowX::-webkit-scrollbar {
  display: none;
}

/* .ql-toolbar:first-child {
  display: none !important;
} */

.ql-container {
  @apply rounded-b-xl text-right;
  font-family: irancell !important;
  direction: rtl;
  min-height: 200px !important;
  max-height: 500px;
  overflow-y: auto;
}
.ql-toolbar {
  @apply rounded-t-xl;
  position: relative !important;
  z-index: 10;
}
.ql-editor {
  @apply !text-right;
}
/* .ql-toolbar:first-child {
  display: none !important;
} */

.Toastify__toast {
  direction: rtl;
  font-family: "irancell" !important;
}

.main-content-scroll {
  scrollbar-width: auto !important;
  -ms-overflow-style: auto !important;
}

.main-content-scroll::-webkit-scrollbar {
  display: block !important;
  width: 5px !important;
}

.main-content-scroll::-webkit-scrollbar-thumb {
  background-color: #c9c9c9 !important;
  border-radius: 5px !important;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}
