/* Custom tweaks di atas Tailwind */
.tab-btn {
  background-color: transparent;
  color: rgb(148 163 184);
  transition: all 0.15s;
}
.tab-btn:hover { background-color: rgb(30 41 59); color: white; }
.tab-btn:active { background-color: rgb(30 41 59); }

/* Smoother table */
table th { white-space: nowrap; }
table td { white-space: nowrap; }

/* Form fields focus */
input:focus, select:focus, textarea:focus {
  border-color: rgb(59 130 246) !important;
}

/* Mobile drawer navigation */
#nav-drawer {
  animation: slideInLeft 0.3s ease-out;
  transform: translateX(0);
}
#nav-drawer.hidden {
  animation: slideOutLeft 0.3s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Drawer overlay fade */
#nav-overlay {
  animation: fadeIn 0.2s ease-out;
}
#nav-overlay.hidden {
  animation: fadeOut 0.2s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Filter collapsible — desktop always visible, mobile toggle via .open */
#paid-filters {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  width: 100%;
}

#paid-filter-actions {
  display: none;
}

@media (max-width: 639px) {
  #paid-filters {
    display: none;
    flex-direction: column;
  }
  #paid-filters.open {
    display: flex;
    animation: slideDown 0.2s ease-out;
  }
  #paid-filter-actions.open {
    display: flex;
    gap: 0.5rem;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card styles */
#paid-cards > div:hover,
#trial-cards > div:hover {
  border-color: rgb(51 65 85);
  background-color: rgb(15 23 42);
  transition: all 0.15s;
}

/* Touch feedback for buttons */
button:active {
  opacity: 0.8;
  transform: scale(0.98);
  transition: all 0.1s;
}

/* Mobile-friendly input height */
input[type="text"],
input[type="password"],
input[type="email"],
select {
  min-height: 2.5rem; /* 40px */
}

/* Scrollbar dark */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgb(2 6 23); }
::-webkit-scrollbar-thumb { background: rgb(51 65 85); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgb(71 85 105); }
