@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700&display=swap");
:root {
  --color-border-soft: #99c9e6;
  --color-bg-table-head: #f9fafd;
  --text-dark-muted: #5a5a5a;

  --focus-ring: rgba(11, 60, 193, 0.08);
  --sidebar-active-bg: rgba(11, 60, 193, 0.08);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 6px 18px rgba(0, 0, 0, 0.2);
}

* {
  font-family:
    "Nunito Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

body {
  background-color: #e8edf4;
}

* {
  caret-color: transparent;
}

input,
textarea,
[contenteditable="true"] {
  caret-color: auto;
}
h3,
h4 {
  color: var(--bs-primary);
}
html {
  scrollbar-width: none;
}

a {
  cursor: pointer;
}

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

.d-flex,
.d-flex::-webkit-scrollbar {
  scrollbar-width: none;
  display: none;
}

.drop-menu {
  scrollbar-width: thin;
  scrollbar-color: #99c9e6 #f8f9fa;
}

.drop-menu::-webkit-scrollbar {
  width: 5px;
}

.drop-menu::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-border-soft);
}

/* navbar */
.nav-item:hover .dropdown-menu {
  display: block !important;
  margin-top: 0;
}

.nav-link {
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-link:focus-visible {
  background-color: var(--sidebar-active-bg);
  border-radius: 0.3rem;
  outline: none;
}
.navbar {
  box-shadow: inset 0 -0.7px 0 rgba(11, 60, 193, 0.06);
}

/* buttons */

.btn-link {
  border-radius: 6px;
  text-decoration: none;
  box-shadow: none;
  font-size: 0.969rem;
  background: rgba(11, 60, 193, 0.16);
  font-weight: 500;
}

.btn-link:hover,
.btn-link:active,
.btn-link:focus,
.btn-link:focus-visible {
  background: rgba(11, 60, 193, 0.2);
  box-shadow: none;
}
.delete {
  background: #fde8e8;
}

.flex-shrink-0 {
  padding: 0.5rem 1rem;
}
/* form and inputs */
.form-group {
  margin-bottom: 0.8rem;
}
.asteriskField {
  display: none;
}
.form-check-input {
  width: 20px;
}
.select2 {
  width: 100% !important;
}
.form-text {
  color: var(--bs-primary) !important;
}
.select2-selection__rendered {
  font-weight: 500;
  font-size: 0.9rem;
}

.textarea {
  height: 6.25rem !important;
}

textarea::-webkit-scrollbar {
  display: none;
}
/* cards & media */

.float-end {
  font-size: 1rem;
  font-weight: 500;
}
.float-start {
  font-size: 0.938rem;
}

.list-group {
  border: rgba(11, 60, 193, 0.14);
  border-radius: 0.825rem;
}

.mycard {
  width: 100% !important;
}

@media (min-width: 768px) {
  .mycard {
    width: 95% !important;
  }
}

/*  tables */

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.919rem;
  font-weight: 600 !important;

  border-bottom: 0.039rem solid var(--color-border-soft);
}
.pagination {
  margin-left: 10px;
}

table td {
  cursor: pointer;
  font-size: 0.919rem;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

table td .dropdown-toggle {
  font-size: 0.9rem !important;
}

.table-container {
  overflow: hidden;
  overflow-y: auto;
  height: 75vh;
  max-height: 95vh;
  border: 1.1px solid rgba(11, 60, 193, 0.14);
  border-radius: 0.825rem;
}

.icon-table-success {
  background: #d1f0db;
  border-radius: 0.5rem;
  padding: 0.3rem;
  color: var(--bs-dark);
}
.icon-table-danger {
  background: #fdeaea;
  border-radius: 0.5rem;
  padding: 0.3rem;
  color: var(--bs-dark);
}
.icon-table-primary {
  background: #eef3ff;
  border-radius: 0.5rem;
  padding: 0.3rem;
  color: var(--bs-dark);
}

@media (max-width: 1023px) {
  table th,
  table td {
    white-space: nowrap !important;
  }
}

@media (min-width: 768px) {
  .table-container {
    min-height: 73vh;
  }
}

@media (min-width: 992px) {
  .table-container {
    min-height: 75vh;
  }
}

@media (min-width: 1200px) {
  .table-container {
    min-height: 75vh;
  }
}

@media (min-width: 1400px) {
  .table-container {
    min-height: 85vh;
  }
}

/* Mobile responsive stacked table */
@media screen and (max-width: 639px) {
  table th,
  table td {
    white-space: nowrap !important;
  }
}

@media (min-width: 768px) {
  .mycard {
    width: 95% !important;
  }
}

@media (min-width: 1200px) {
  .mycard {
    width: 55% !important;
  }
}
/* ====animations=========== */
.dot-spinner {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.dot-spinner .dot {
  width: 15px;
  height: 15px;
  margin: 0 4px;
  border-radius: 50%;
  background-color: var(--bs-primary) !important;
  animation: dot-bounce 1.4s infinite ease-in-out both;
}

.dot-spinner .dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot-spinner .dot:nth-child(2) {
  animation-delay: -0.16s;
}

.dot-spinner .dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes dot-bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
.container.htmx-added {
  opacity: 0;
  transform: translateX(30px);
}

.container.htmx-added.htmx-settling {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.container.htmx-swapping {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}
