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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Almarai', sans-serif !important;
  user-select: none !important;
}

:root {
  --primary-color: #6A2F38;
  --light-red: #6A2F38D1;
  --hidden-red: #6A2F3863;
  --secondary-color: #D4AD89;
  --light-gray-color: #E6E7E8;
  --accent-color: #9A6360;
  --dark-gray-color: #5B5161;
  --darker-gray-color: #414042;
  --text-color: #414042;
  --semi-gray: #7A7A7A;
  --line-height: 32px;
  --destructive: #DA0037;
  --success: #4E9F3D;
  --warning: #D4AD89
}

.layout {
  padding-block: 3rem 8rem;
  padding-inline: clamp(1rem, 6vw, 16rem);
}
@media not all and (max-width:1540px) {
  .layout {
  padding-inline: clamp(1rem, 11vw, 30rem);
  }
}

.active {
  color: var(--secondary-color) !important
}

@font-face {
  font-family: 'Almarai';
  src: url('./assets/fonts/ar/Almarai-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

article * {
  font-family: 'Almarai', sans-serif !important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  user-select: none !important;
}

input[type="number"] {
  -moz-appearance: textfield;
  user-select: none !important;
}

.log a:focus,
.log a:visited {
  background-color: #fff !important;
}


#slider-desc,
#slider-desc span,
#slider-desc p {
  text-align: right;
  background-color: transparent !important;
  font-family: 'Almarai', sans-serif !important;
}

button.training-btn {
  background-color: #eee !important;
  padding: 10px;
  border-radius: 6px;
  transition: all 150ms ease-in-out;
}

button.training-btn-seen {
  background-color: var(--primary-color) !important;
}

/* seminar details btns */
.seenSection {
  background-color: var(--secondary-color) !important;
  color: white !important;
}

.unSeenSection {
  background-color: white !important;
  color: var(--secondary-color) !important;
}

.filter-btn {
  display: flex;
  align-self: center;
  gap: 0.75rem;
  width: auto !important;
  border-radius: 0.375rem;
  background-color: var(--primary-color) !important;
  padding: 0.5rem 1.7rem;
  color: white !important;
  transition: width 0.2s ease-in-out;
}

.date [aria-selected="true"] {
  background-color: var(--secondary-color);
  color: white;
}

.select-ui {
  width: 100%;
  cursor: pointer;
  appearance: none;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  color: #374151;
  outline: none;
  background-color: #eee;
  transition: border 0.2s, box-shadow 0.2s;
}

.select-icon {
  background-color: #eee;
  padding: 0.5rem;
  border-radius: 0.375rem;
  z-index: 5;
  position: absolute;
  left: 0.1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.select-ui:focus {
  border-color: var(#E5E5E5);
  box-shadow: 0 0 0 1px #E5E5E5;
}

.scrollbox::-webkit-scrollbar,
.scrolling::-webkit-scrollbar,
.overflow-y-scroll::-webkit-scrollbar {
  display: none;
}

.scrolling {
  display: flex;
  justify-content: flex-start;
  overflow: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}

.see-scroll-bar::-webkit-scrollbar {
  display: block !important;
  width: 7px !important;
  height: 7px !important;
}

.see-scroll-bar::-webkit-scrollbar-track {
  box-shadow: inset 0 0 4px #d5d5d5 !important;
}

.see-scroll-bar::-webkit-scrollbar-thumb {
  background: #6A2F38;
  border-radius: 7px;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #aaa;
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #6A2F38;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #53252c;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--light-gray-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999899;
}

.scaleIt {
  animation: scaleIt 1000ms ease-in-out;
}

@keyframes scaleIt {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(50);
  }
}

/* Hide scrollbar when the spinner is visible */
body.spinner-active {
  overflow: hidden;
  /* This hides the scrollbar */
}

.logo-spinner {
  width: 200px;
  height: auto;
  animation: scale 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px var(--primary-color));
}

/* Optional button styles with added colors */
.button {
  background-color: var(--secondary-color);
  color: var(--darker-gray-color);
  border: 1px solid var(--dark-gray-color);
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.button:hover {
  background-color: var(--accent-color);
  color: var(--light-gray-color);
}

@keyframes scale {

  0%,
  100% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(0.9);
  }
}

.l-load {
  background: 0 0/200% 100% no-repeat #e0e0e0;
  background-image: linear-gradient(to right,
      #e0e0e0 0%,
      #d6d6d6 25%,
      #f0f0f0 50%,
      #d6d6d6 75%,
      #e0e0e0 100%);
  animation: load-p 2s ease-in-out infinite;
}

@keyframes load-p {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.l-load-dt {
  background: 0 0/200% 100% no-repeat #bdbdbd;
  background-image: linear-gradient(to right,
      #bdbdbd 0%,
      #a0a0a0 25%,
      #d0d0d0 50%,
      #a0a0a0 75%,
      #bdbdbd 100%);
  animation: load-p 2s ease-in-out infinite !important;
}

button.training-btn-unseen {
  text-wrap: nowrap !important;
  background-color: #eee !important;
  color: var(--darker-gray-color) !important;
  padding: 0.4rem 1rem;
  border-radius: 7px;
  padding: 10px
}

.training-btn-unseen {
  border-radius: 8px;
}

.training-btn-seen {
  text-wrap: nowrap !important;
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 8px;
  position: relative;
}

.training-btn-seen::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--primary-color);
}

.tr-title {
  position: relative;
  margin-right: 0.7rem;
  margin-bottom: 0.5rem !important;
}

.tr-title::before {
  content: '';
  display: block;
  position: absolute;
  top: 0.2rem;
  background-color: var(--secondary-color);
  width: 2px;
  height: 1.5rem;
}

#err {
  color: rgb(183, 16, 16) !important;
  margin: 3rem 0 !important;
}

@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 1s linear infinite;
}

.box-with-bg {
  background-color: var(--secondary-color);
  color: #fff;
  background-image: url("../src/assets/used-images/coaching-box-bg.png");
  display: grid;
  justify-content: center;
  align-items: center;
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 15px;
  text-wrap: nowrap;

  p {
    rotate: -90deg;
  }
}

.services-header {
  position: relative;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  width: fit-content;
  margin-block: 20px;
  
}

.services-header::after {
  content: "";
  position: absolute;
  bottom: -4px;
  display: block;
  background-color: var(--secondary-color);
  width: 100%;
  height: 2.5px;
  border-radius: 4px;
}

.ev-box {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(106, 47, 56, 0.9) 0%, rgba(72, 23, 30, 0.9) 100%);
  background-size: cover;
  background-position: center;
}

.bg-light-red {
  background: linear-gradient(rgb(134 66 77 / 71%), rgba(106, 47, 56, .91));
}

.swiper-box {
  height: 16rem !important;
  padding: 1rem 0 !important;
}

@media not all and (min-width:1024px) {
  .layout {
    padding: 0.5rem 1rem;
  }

  .box-with-bg {
    p {
      rotate: 0deg;
    }
  }

  .swiper-box {
    height: 20rem !important;
  }

  .see-scroll-bar::-webkit-scrollbar {
    display: none !important;
  }
  .services-header{
    font-size: 1.25rem;
  }
}

.dropdown-menu.show a:focus {
  background-color: #eee !important;
}

article,
article div,
article img {
  width: 100% !important;
}

article img {
  border: 1px solid #6A2F38 !important;
  padding: 5px !important;
  border-radius: 10px;
  margin-bottom: 10px;
}

article p a {
  background-color: #6A2F38 !important;
  color: #fff !important;
  margin: 20px auto !important;
  padding: 10px 20px;
  border-radius: 8px;
  display: block;
  min-width: 200px;
  text-align: center;
  transition: all .3s ease-in-out;
  border: 1px solid #fff !important;
}

article p a:hover {
  border: 1px solid #6A2F38 !important;
  background-color: #fff !important;
  color: #6A2F38 !important;

}

@media screen and (max-width: 768px) {
  .goals-list,
  .targets-list {
    column-count: 1;
  }
}
/* General input style */
.input-container {
  display: flex;
  align-items: center;
  background-color: #F2F2F2;
  border-radius: 5px;
  padding: 8px;
  max-width: 100%;
  justify-content:space-between;
  padding: 0 !important;
}

.input-field {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  color: #5C1F2E;
  /* Burgundy */
}

.input-message {
  font-size: 12px;
  color: #5C1F2E;
  margin-top: 5px;
}

/* Attachment Icon */
.attachment-icon {
  background-color: var(--primary-color) !important;
  width: 20%;
  color: #fff !important;
  font-size: 25px;
  height: 45px;
  padding: 5px !important;
  border-radius: 5px  5px;
}

iframe {
  height: 85dvh !important;
}

.react-datepicker-wrapper {
  width: 100% !important;
}

@media print {
  @page {
    size: 210mm 350mm; /* w-h */
    margin: 0;
    background-color: #fefefe;
  }

  body {
    position: relative;
    line-height: 1.5;
    color: #000;
    background-color: #fefefe;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-size: 12pt;
  }

  .print-image {
    position: fixed;
    margin-bottom: 12cm;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
  }

  .new-page {
    page-break-before: always;
  }

  .same-page {
    page-break-inside: avoid
  }

  .content {
    page-break-before: always;
    margin-top: 120px;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
    margin-bottom: 0.5cm;
  }


  li {
    margin-bottom: 0.2cm;
  }

  .two-column {
    column-count: 2;
    column-gap: 1cm;
    height: 100%;
    break-inside: avoid;
  }
  .two-column > * {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .column-break {
    break-before: column;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #888 !important;
  opacity: 1;
  border-radius: 50%;
  position: relative;
  margin: 0 5px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  box-shadow: 0 0 0 4px #5f1a24; 
  padding: 2px !important;
}

.footer-logo-bg{
  background-image: url('./assets/brand-img.png');
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
}

.tabs-container{
  margin: 20px auto;
  display: flex;
  justify-content: center;
}
.tabs-container button {
  margin: 10px !important;
  background-color: #fff !important;
  color: #5f1a24 !important;
  border: 1px solid #5f1a24 !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  
}
.tab-button.active{
  background-color: #5f1a24 !important;
  color: #fff !important;
  border: 1px solid #5f1a24 !important;

}


.b24-widget-button-shadow {
  z-index: 999999999999999999999999999999999999999999 !important;
}
.b24-widget-button-wrapper{
  z-index: 9999999999999999999999999999999999999999999999 !important;
}

.bx-livechat-box{
  position: relative !important;
  z-index: 9999999999999999999999999999999999999999999999999999999999999999 !important;
}

[aria-invalid="true"] {
  border-color: red !important;
  outline-color: red !important;
}
input[type="radio"]:focus ,input[type="radio"]:active, input[type="radio"]:checked {
  border-color: var(--primary-color) !important;
  outline-color: var(--primary-color) !important;
  accent-color: var(--primary-color) !important;
}
.reverse-cards ul li::first-word{
  color: var(--secondary-color);
}