@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=fallback");
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,400;1,600;1,700&display=swap');

@import "tailwindcss/base";
@import "tailwindcss/components";

/* Additional styles */
@import "additional-styles/utility-patterns.css";
@import "additional-styles/range-slider.css";
@import "additional-styles/toggle-switch.css";
@import "additional-styles/flatpickr.css";
@import "additional-styles/theme.css";

@import "tailwindcss/utilities";

/* See Alpine.js: https://github.com/alpinejs/alpine#x-cloak */
[x-cloak=""] {
  display: none;
}

@media screen and (max-width: theme("screens.lg")) {
  [x-cloak="lg"] {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
}

body #home {
  background-color: #ffffff;
}

body {
  background-color: #eaeaea;
  color: #475569;
  font-family: "Inter", sans-serif;
}

.login-bg {
  background-image: url(/static/img/login-bg.jpg);
  background-position: center;
}

.font-Manrope {
  font-family: "Manrope", sans-serif;
}

.font-Inter {
  font-family: "Inter", sans-serif;
}

.font-Titillium {
  font-family: "Titillium Web", sans-serif;
}

.list ul {
  list-style: disc !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.list li {
  width: fit-content;
}

input[type="search"]:focus
  input[type="search"]:hover
  input[type="search"]:active {
  outline: 0 !important;
  outline-width: 0 !important;
  outline-color: transparent !important;
}

input {
  background: white;
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 5px !important;
  height: 38px;
}

.form {
  width: 100%;
  background: #fff;
  border-radius: 4px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

#user_list .form, 
#org_list .form {
  border: 1px solid #eaeaea;
}

#form_wrapper .cke {
  width: 100% !important;
  max-width: 833px !important;
}

#form_wrapper .cke_contents {
  height: auto !important;
}

#form_wrapper.gray select.form-select {
  background-color: #eaeaea;
}

.errorlist.nonfield li {
  font-size: 14px !important;
  color: rgb(239 68 68) !important;
  margin-bottom: 4px !important;
}

#form_wrapper select.form-select,
#form_wrapper.testimonials input#id_author,
#statistics select,
.add-org-user {
  border: 1px solid #eaeaea !important;
  box-shadow: 0px 1px 2px rgba(15, 23, 42, 0.04) !important;
  border-radius: 4px !important;
  width: 100% !important;
  height: 38px !important;
  font-size: 14px !important;
}

#form_wrapper input.form-image {
  height: 60px !important;
  position: absolute;
  z-index: 10 !important;
  padding: 0 !important;
  width: 200px !important;
  opacity: 0;
  cursor: pointer !important;
}

#dataTable thead tr th {
  padding-bottom: 12px;
  border-bottom: 1px #475569 solid;
}

#dataTable tbody tr {
  background-color: hsla(199, 26%, 16%, 0.1);
  border-bottom: 1px #475569 solid;;
}

#dataTable tbody tr td {
  padding: 12px 0px;
}

.ui-autocomplete.ui-menu {
  border: 1px solid #eaeaea !important;
  box-shadow: 0px 1px 2px rgba(15, 23, 42, 0.04) !important;
  border-radius: 4px !important;
  width: auto;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif;
  padding: 6px 0px;
}


/* SCROLL STYLES */

.enrollListWrapper::-webkit-scrollbar {
  width: 10px;
}

.enrollListWrapper::-webkit-scrollbar-track {
  background: none;
}

.enrollListWrapper::-webkit-scrollbar-thumb {
  background: #B2C73D;
  border-radius: 999px;
}

.enrollListWrapper::-webkit-scrollbar-thumb:hover {
  background: #85a833;
}

/* SCROLL STYLES END */

/* LOADER STYLES */

.lds-roller {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}

.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #B2C73D;
  margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
  top: 63px;
  left: 63px;
}

.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
  top: 68px;
  left: 56px;
}

.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 71px;
  left: 48px;
}

.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}

.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
  top: 71px;
  left: 32px;
}

.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 68px;
  left: 24px;
}

.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
  top: 63px;
  left: 17px;
}

.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12px;
}

@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.lds-dual-ring {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  margin-top: 20px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #B2C73D;
  border-color: #B2C73D transparent #B2C73D transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

/*LOADER STYLES END */

/* SELECT STYLES */

/* The container must be positioned relative: */
.custom-select {
  position: relative;
  margin-top: 8px;
}

.custom-select select {
  display: none; /*hide original SELECT element: */
}

.select-selected {
  background-color: hsl(0, 0%, 92%);
  border-radius: 4px;
  color: #475569;
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #475569 transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #475569 transparent;
  top: 7px;
}

/* style the items (options), including the selected item: */
.select-items div,
.select-selected {
  color: #475569;
  padding: 8px 16px;
  cursor: pointer;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: hsl(0, 0%, 92%);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.select-items div:hover,
.same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

/* SELECT STYLES END */

/* CHECKBOX STYLES */

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 1px solid hsl(199, 26%, 16%);
  color: hsl(199, 26%, 16%);
  border-radius: 4px;
}

input[type="checkbox"]:focus {
  outline: none !important;
  outline-offset: 0 !important;
  outline-width: 0 !important;
  --tw-ring-offset-width: 0;
  --tw-ring-offset-color: none;
  --tw-ring-color: none;
}

/* CHECKBOX STYLES END */

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 33, 33, 0.7);
  backdrop-filter: blur(10px);
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #FFF;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  animation: spin 1s linear infinite;
}

.spinner-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* GOOGLE MAP STYLES START */

@media (min-width: 848px) {
  .map_canvas_wrapper {
    margin-left: 0px !important;
    margin-top: 20px !important;
  }
}

/* GOOGLE MAP STYLES END -*/

@media (min-width: 1921px) {
  .h-screen-nav {
    height: calc(70vh - 144px);
  }
}

@media (min-width: 1280px) {
  .sidebar-expanded .xl\:sidebar-expanded\:\!w-64 {
    width: 16rem !important;
  }
  .sidebar-expanded .lg\:sidebar-expanded\:opacity-100 {
    opacity: 1 !important;
  }
  body div button#collapser.sidebar-expanded {
    rotate: 180deg;
  }
}
