/* Custom styles beyond Tailwind */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* Nav links */
.nav-link {
  color: #a1a1aa;
}
.nav-link:hover {
  color: #e4e4e7;
  background: rgba(59, 130, 246, 0.06);
}
.nav-link.active {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

/* Tab buttons */
.tab-btn {
  color: #a1a1aa;
}
.tab-btn:hover {
  color: #e4e4e7;
}
.tab-btn.active {
  color: #e4e4e7;
  background: #1e1e2a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Select dropdown arrow fix for dark mode */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Toast variants */
.toast-success { background: #16a34a; color: white; }
.toast-error { background: #dc2626; color: white; }
.toast-info { background: #2563eb; color: white; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fade in animation */
.fade-in {
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Status badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge-active { background: rgba(34,197,94,0.12); color: #22c55e; }
.badge-expired { background: rgba(239,68,68,0.12); color: #ef4444; }
.badge-lifetime { background: rgba(59,130,246,0.12); color: #3b82f6; }

/* Table row hover */
#users-tbody tr:hover {
  background: rgba(59, 130, 246, 0.03);
}

/* Script card */
.script-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  transition: background 0.15s;
}
.script-card:hover {
  background: rgba(255,255,255,0.02);
}
