body {
  font-family: 'Inter', sans-serif;
}

.table td,
.table th {
  vertical-align: middle;
}

.toast {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.pointer-events-none {
  pointer-events: none;
}







body {
  background: url('https://static.tildacdn.com/tild6563-3935-4134-a363-313966656366/14579711_5488082.jpg');
  /* background: #1c3fc1 !important; */
  background-size: cover;

}

.drawer {
  background: #ffffff78;
  /* backdrop-filter: blur(1px); */
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid #ffffffb5;
  display: flex !important;
  max-height: calc(100vh - 32px);
  min-height: calc(100vh - 32px);
  height: calc(100vh - 32px);
  overflow: auto;
  position: relative;
}

.drawer .drawer-content {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.drawer .drawer-side {
  display: block !important;
  position: relative !important;
  transform: none !important;
  visibility: visible !important;
  width: 16rem !important;
  flex-shrink: 0;
  order: -1;
}

aside.w-64.bg-base-100.h-full {
  background: transparent !important;
  /* backdrop-filter: blur(10px); */
}

ul.menu a,
.btn {
  padding: 10px 18px;
  border-radius: 16px;
}

.btn {
  height: fit-content;
}

ul.menu a.active {
  background: linear-gradient(340deg, #ffffff5d, #ffffff3a, #ffffff7d) !important;
  color: #000 !important;
}

ul.menu a.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(163deg, #ffffffba, #ffffff00, #ffffff47);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.rounded-xl {
  border-radius: 20px !important;
}

.text-primary {
  color: #000 !important;
}

.card {
  border-radius: 20px;
}

.drawer-content.flex.flex-col {
  background: #ffffff4e;
  box-shadow: 0 0 13px 0 #95959536;
  overflow: hidden;
  margin: 7px;
  margin-left: 0;
  border-radius: 23px;

}

.drawer-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(163deg, #ffffff6f, #ffffff00, #ffffff47);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.navbar.sticky {
  margin: 7px;
  border-radius: 17px;
  width: calc(100% - 14px);
}

.logo {
  display: block;
  margin-left: 10px;
  margin-top: 10px;
}

#db-error-banner {
  width: auto;
  background: linear-gradient(-90deg, #ff00004d, #ff00000f);
  border: 1px solid #ff8080;
}

#page-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid !important;
  place-items: center;
  z-index: 10;
}

#page-loader.hidden {
  display: none !important;
}

#page-loader .loading {
  width: 48px;
  height: 48px;
}

.drawer-content main {
  position: relative;
  transition: opacity 0.15s ease;
  overflow: auto;
}

.drawer .drawer-toggle {
  display: none;
}

.drawer .drawer-side>*:not(.drawer-overlay) {
  transform: none !important;
}

.drawer-side {
  pointer-events: all !important;
  height: 100%;
}


.settings-btns-container {
  background: linear-gradient(340deg, #ffffff55, transparent);
  position: relative;
  /* border-top-color: #ffffff92;
  border-left-color: #ffffff74;
  border-bottom-color: #ffffff41;
  border-right-color: #ffffff2c; */
  border-radius: 24px;

}

.settings-btns-container a {
  width: 100%;
}

.settings-btns-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(163deg, #ffffff6f, #ffffff00, #ffffff47);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

a[href="/logout"] {
  color: #90171f !important;
}

a[href="/logout"]:hover {
  color: #000000 !important;
  background: rgba(255, 0, 0, 0.298);
}


.stat.bg-base-100.shadow.rounded-xl,
.card-body {
  background: linear-gradient(340deg, #ffffff91, transparent);
  box-shadow: 0 0 50px 0 #4d4d4d2e !important;
  position: relative;
}

.card {
  background: #ffffff4e;
  overflow: hidden;

}

.card-glass {
  background: linear-gradient(340deg, #ffffff91, transparent) !important;
  box-shadow: 0 0 50px 0 #4d4d4d2e !important;
  position: relative;

}

.card-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(163deg, #ffffffba, #ffffff00, #ffffff47);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.stat.bg-base-100.shadow.rounded-xl::before,
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(163deg, #ffffffba, #ffffff00, #ffffff47);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.card.bg-base-100.shadow {
  background: linear-gradient(358deg, #ffffff5d, transparent);
  box-shadow: 0 0 50px 0 #4d4d4d2e;
  position: relative;
}

.card.bg-base-100.shadow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(163deg, #ffffffba, #ffffff00, #ffffff47);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}



.table tr.active,
.table tr.active:nth-child(2n),
.table-zebra tbody tr:nth-child(2n) {
  background: transparent;
}

.table :where(thead, tbody) :where(tr:first-child:last-child),
.table :where(thead, tbody) :where(tr:not(:last-child)) {
  border-bottom-color: #ffffff;
}

form {
  align-items: center;
}

.input-container {
  background: linear-gradient(358deg, #ffffff5d, transparent) !important;
  color: #000;
  position: relative;
  border: none;
  overflow: hidden;
  padding: 0 !important;
  border-radius: 20px;
  height: fit-content;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.input {
  background: transparent;
  border-radius: 0 !important;
}

.input:focus {
  border: 1px solid transparent !important;

}

.input::placeholder {
  color: #00000083;
}

.input-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 1px;
  background: linear-gradient(163deg, #ffffffba, #ffffff00, #ffffff47);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.input-container:has(.input:focus)::before {
  background: linear-gradient(0deg, #ffffff, #ffffffbd, #ffffff97);

}

.btn.gl {
  position: relative;
  border: none;
}

.btn.gl::after {
  content: '';
  background: linear-gradient(338deg, #676767, transparent) !important;
  border-radius: 16px;
  opacity: 0.5;
  display: block;
  mix-blend-mode: color-dodge;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  position: absolute;
}

.btn.gl::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(163deg, #ffffffba, #ffffff00, #ffffff47);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.badge {
  height: fit-content;
  text-align: center;
  position: relative;
  border: none;
  padding: 4px 8px;

}

.badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(163deg, #ffffffba, #ffffff00, #ffffff47);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.badge::after {
  content: '';
  background: linear-gradient(338deg, #676767, transparent) !important;
  border-radius: 26px;
  opacity: 0.5;
  display: block;
  mix-blend-mode: color-dodge;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  position: absolute;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 1023px) {
  .drawer .drawer-side {
    display: none !important;
  }

  .mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    padding: 6px 8px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 12px;
    color: #666;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
  }

  .tabbar-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
  }

  .tabbar-item[data-active="true"],
  .tabbar-item.active {
    color: #000;
    background: rgba(255, 255, 255, 0.7);
  }

  .tabbar-item:active {
    background: rgba(0, 0, 0, 0.05);
  }

  .drawer-content main {
    padding-bottom: 80px !important;
  }

  .drawer {
    max-height: none;
    min-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .drawer-content.flex.flex-col {
    margin: 0;
    border-radius: 0;
  }

  body {
    padding: 0;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .dashboard-stats-grid .stat {
    padding: 12px !important;
  }

  .dashboard-stats-grid .stat-figure {
    display: none !important;
  }

  .dashboard-stats-grid .stat-title {
    font-size: 11px !important;
  }

  .dashboard-stats-grid .stat-value {
    font-size: 18px !important;
  }

  .dashboard-quick-links .card-body {
    padding: 12px !important;
  }

  .dashboard-quick-links svg {
    width: 28px !important;
    height: 28px !important;
  }

  .dashboard-quick-links .card-title {
    font-size: 14px !important;
  }

  .dashboard-quick-links p {
    display: none !important;
  }

  .dashboard-heading {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
}