@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap");

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

@layer utilities {
  .p-style {
    @apply text-white font-light leading-8 md:leading-10 text-sm md:text-base;
  }
}

html,
body {
  overflow-x: hidden;
}
body {
  font-family: "Lexend", sans-serif;
}
ul li.active {
  color: #ff7c2f;
  font-weight: 500;
}
.hero {
  position: relative;
  background-image: url("../images/cuvaHero.png");
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position:
    center center,
    center center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.65;
}

.gradient-bg {
  background: linear-gradient(to bottom, #46307d 0%, #46307d 30%, #fa782b 60%, #fa782b 100%);
}

::backdrop {
  background: rgba(0, 0, 0, 0.681);
}

.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

#submit_btn.disabled,
#packscheduleFormBtn.disabled {
  background-color: #46307d9e;
}

#downloadPolicy.disabled,
#fileClaimBtn.disabled,
#getUserDetailsBtn.disabled,
#saveClaimBtn.disabled,
#downloadReceiptButton.disabled,
#submitBtn.disabled,
#loginInBtn.disabled,
#funeralBtn.disabled {
  background-color: #ff7b2f85;
}

.loadingIconWhite {
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  animation: rotate 1.5s infinite linear;
}

.spin {
  animation: spin 1s linear infinite;
}

.subMenu {
  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.subMenu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* datatables overiding */
#policiesTable thead tr th,
#claimsTable thead tr th {
  text-align: left !important;
}
#policiesTable tbody tr td,
#claimsTable tbody tr td {
  text-align: left !important;
}
#policiesTable_wrapper .dt-layout-row:first-of-type,
#claimsTable_wrapper .dt-layout-row:first-of-type {
  display: none !important;
}

.dt-paging nav {
  display: flex !important;
  align-items: center !important;
}
.dot-loader span {
  animation: blink 1.4s infinite both;
}

.dot-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.dot-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

#claimsModal svg {
  rotate: 90deg;
}

label:has(+ input:required)::after,
label:has(+ select:required)::after,
label:has(+ textarea:required)::after {
  content: " *";
  color: red;
  font-weight: bold;
}

strong.nin-text {
  font-weight: bold;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
