/* ========================================================================
   FONT IMPORTS
   ======================================================================== */
@font-face {
  font-family: 'Asul';
  src: url('../font/Asul-Regular.ttf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'Asul';
  src: url('../font/Asul-Bold.ttf') format('truetype');
  font-weight: bold;
}

@font-face {
  font-family: 'Poppins';
  src: url('../font/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../font/Poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'Poppins';
  src: url('../font/Poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'Poppins';
  src: url('../font/Poppins/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
}

/* ========================================================================
   GLOBAL BASE STYLES
   ======================================================================== */
body {
    font-family: 'Poppins' !important;
}

/* Tailwind Directives */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ===========================================
   Base Layer
=========================================== */

@layer base {
  :root {
    --color-primary: 231 76 60;
    --color-secondary: 119 110 110;
    --color-text: 251 251 251;
    --white: 255 255 255;
    --dark: 0 0 0;
    --green: 0 147 0;
    --blue: 0 42 147;
    --yellow: 147 125 0;
    --red: 147 0 0;
    --bg-white: 255 255 255;
  }

  :root[class~="dark"] {
    --color-secondary: 171 171 171;
    --color-text: 0 0 0;
    --white: 0 0 0;
    --dark: 255 255 255;
    --bg-white: 0 0 0;
  }
}

.active\:bg-dark:active {
  background-color: var(--white);
}

/* Text Formatting */
.text-primary {
  background: -webkit-linear-gradient(
    270deg,
    rgb(var(--color-primary)) 0%,
    color-mix(in srgb, rgb(var(--color-primary)) 70%, black) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Button */
.bg-dark-btn {
  background: rgb(var(--bg-white)) !important;
}

.btn-primary {
  letter-spacing: 0.05em;
  font-family: 'Poppins';
  background: linear-gradient(
    180deg,
    rgb(var(--color-primary)) 0%,
    color-mix(in srgb, rgb(var(--color-primary)) 70%, black) 100%
  );
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  margin-top: 1.75rem;
  margin-right: 1.5rem;
  transition: all 0.3s ease-in-out;
}

.btn-outline-primary {
  color: rgb(var(--color-secondary));
  letter-spacing: 0.05em;
  font-family: 'Poppins';
  border: 1px solid rgb(var(--color-primary));
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  margin-top: 1.75rem;
  transition: all 0.3s ease-in-out;
}

/* Hover effects */
.btn-primary:hover,
.btn-outline-primary:hover {
  transform: scale(0.9);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

#dropdownMenu::after {
  content: '';
  position: absolute;
  top: 15px;
  right: -15px;
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

nav ul .active {
  margin: 5px 0 !important;
}

/* DataTable Styling */
.dt-container {
  padding: 10px;
}

.pagination .first,
.pagination .previous,
.pagination .next,
.pagination .last {
  background-color: var(--color-primary);
}

.dataTables_wrapper {
  padding: 10px 0;
}

.dataTables_wrapper tbody td {
  padding: 16px 10px !important;
}

.dt-length label,
.dt-length select,
.dt-info {
  color: rgb(var(--color-secondary)) !important;
  font-family: 'Poppins';
}

.dt-column-title {
  font-size: 16px;
}

.dt-empty {
  text-align: center;
  padding: 50px 20px;
  font-size: 14px;
  color: var(--color-secondary);
}

/* Sidebar */
.side-item a {
  color: #ffffff;
  padding: 0.88rem 1.25rem;
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
  display: flex;
  align-items: center;
}

#sidebar,
#modal {
  z-index: 1;
}

.side-item:hover,
.active {
  background-color: rgb(var(--color-text) / var(--tw-bg-opacity, 1));
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
  --tw-bg-opacity: 0.5;
  padding-inline-start: 0.375rem;
  position: relative;
}

.side-item:hover a,
.active a {
  color: rgb(var(--dark) / var(--tw-text-opacity, 1)) !important;
  padding: 0.875rem 1.25rem !important;
  background-color: rgb(var(--color-text)) !important;
}

/* Input Style */
.dt-container input::placeholder,
.custom-input::placeholder {
  font-weight: 400;
  font-family: 'Poppins';
  color: rgb(var(--color-secondary));
}

.custom-input {
  padding: 1rem 1.5rem;
  border: 1px solid rgb(var(--color-secondary) / 0.15);
  color: rgb(var(--color-secondary));
  border-radius: 20px;
  font-weight: 400;
  font-family: 'Poppins';
}

.dt-container input:focus,
.custom-input:focus {
  outline-color: rgb(var(--color-primary) / 0.5);
}

.dt-search input {
  font-size: 16px;
  font-family: 'Poppins';
  color: rgb(var(--color-secondary));
  padding: 0.8rem 1rem;
  border-radius: 30px;
  border: 1px solid rgb(var(--color-primary));
  outline-color: rgb(var(--color-primary) / 0.5);
}

.dt-length select {
  font-size: 16px;
  font-family: 'Poppins';
  color: rgb(var(--color-secondary));
  padding: 0.5rem;
  border: 1px solid rgb(var(--color-primary));
  outline-color: rgb(var(--color-primary) / 0.5);
}

.dt-paging .pagination {
  border-color: rgb(var(--color-primary));
}

.dt-paging .pagination .active {
  background-color: rgb(var(--color-primary));
  border-color: rgb(var(--color-primary));
}

/* Pagination */
.pagingContainer {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.prev-button,
.next-button,
.page-number {
  padding: 5px 10px;
  border: 1px solid rgb(var(--color-primary) / 0.5) !important;
  cursor: pointer;
  background: rgb(var(--white)) !important;
  color: rgb(var(--color-secondary)) !important;
  font-family: 'Poppins' !important;
  font-weight: 600;
}

.prev-button {
  border-top-left-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
}

.next-button {
  border-top-right-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
}

.active-page {
  background: -webkit-linear-gradient(
    270deg,
    rgb(var(--color-primary)) 0%,
    color-mix(in srgb, rgb(var(--color-primary)) 70%, black) 100%
  ) !important;
  color: rgb(var(--white)) !important;
}

.page-number {
  color: rgb(var(--color-primary)) !important;
  font-weight: bold;
}

/* Tabs */
.active-tab {
  background-color: rgb(var(--bg-white)) !important;
  color: rgb(var(--color-primary)) !important;
  font-weight: bold !important;
}

.active-tab::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -17px;
  width: 37px;
  height: 17px;
  background-color: rgb(var(--color-text));
  clip-path: path("M88 -21C16 49 20 -5 16 0L0.5 -55.5L4.5 -1H16V38Z");
}

.active-tab::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -15px;
  width: 37px;
  height: 17px;
  background-color: rgb(var(--color-text));
  clip-path: path("M-57 -23C16 49 16 -5 15 0L0.5 -55.5L4.5 -1H16V38Z");
}

/* Mobile */
.mobile-only {
  display: none;
}

/* Menu Drawer */
.menu_drawer_row {
  overflow: auto;
  scrollbar-width: none;
  transform: translateX(100%);
  transition: all 0.8s ease;
  z-index: 10 !important;
  position: fixed !important;
  top: 0;
  right: 0;
  width: 92%;
  max-width: 310px;
}

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

.menu_drawer_row.opened {
  transform: translateX(0);
  transition: all 0.8s ease;
}

.menu_drawer_row .menu_drawer_col {
  min-height: 100vh !important;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.menu_drawer_hamburger_icon,
.menu_drawer_close_icon {
  cursor: pointer;
}

.menu_drawer_row .menu__wrap {
  justify-content: center;
}

.menu_drawer_row .menu__wrap ul,
.menu_drawer_row .menu__wrap ul li {
  display: block;
  text-align: center;
}

.menu_drawer_row .menu__wrap nav > ul > li:not(:first-child) {
  margin-top: 30px;
}

.menu_drawer_row .menu__wrap nav ul li a {
  display: inline-block;
}

.menu_drawer_row .nav li li,
.menu_drawer_row .nav li li a {
  padding: 0;
}

/* Container */
.container {
  max-width: 1320px !important;
}

html {
  scroll-behavior: smooth;
}

/* Hero Section */

.bg-gradient-primary-3 {
  background: radial-gradient(circle at top left, rgb(var(--color-primary) / 30%), #ffffffd6 60%),    radial-gradient(circle at bottom right, rgb(var(--color-primary) / 50%), #ffffffb8 60%)
}

.dark .bg-gradient-primary-3 {
  background-image:unset !important;
}

/* Testimonial Arrows */
.swiper-button-next,
.swiper-button-prev {
  width: 10px !important;
  height: 10px !important;
  padding: 20px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 15px !important;
}

.swiper-button-next {
  right: 0px !important;
}

.swiper-button-prev {
  left: 0px !important;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
  .mobile-only {
    display: block !important;
  }
}

@media screen and (max-width: 768px) {
  #dropdownMenu::after {
    content: '';
    top: -12px;
    right: 0;
    transform: rotate(270deg);
  }
}
