/* Custom styles complementing Tailwind - Zerofy Dark Theme */

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #18181b 0%, #0a0a0f 100%);
  min-height: 100vh;
}

/* Global text colors for dark theme */
.text-primary { color: #f4f4f5; }
.text-secondary { color: #d4d4d8; }
.text-muted { color: #a1a1aa; }
.text-faint { color: #71717a; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes glow {
  0% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
  100% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.6); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }
.animate-slide-in { animation: slideIn 0.2s ease-out forwards; }
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite alternate; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Glass morphism cards */
.glass-card {
  background: rgba(39, 39, 42, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

.card {
  background: rgba(39, 39, 42, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.75rem;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #7c22ce 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(63, 63, 70, 0.5);
  color: #e4e4e7;
  border: 1px solid rgba(82, 82, 91, 0.5);
}
.btn-secondary:hover {
  background: rgba(82, 82, 91, 0.5);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 0.75rem;
  color: #f4f4f5;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}
.form-input::placeholder { color: #71717a; }
.form-input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
  background: rgba(24, 24, 27, 0.8);
}

/* Progress bars */
.progress-bar {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #a855f7, #c084fc);
  border-radius: 9999px;
  height: 100%;
}

.progress-track {
  width: 100%;
  background: rgba(63, 63, 70, 0.5);
  border-radius: 9999px;
  overflow: hidden;
  height: 0.5rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.25;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-info {
  background: rgba(168, 85, 247, 0.1);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Brand logo with glow */
.logo-glow {
  background: linear-gradient(135deg, #a855f7 0%, #7c22ce 100%);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
  position: relative;
}
.logo-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #c084fc, #7c22ce);
  border-radius: inherit;
  z-index: -1;
  filter: blur(12px);
  opacity: 0.6;
}

/* Spinner */
.spinner {
  border: 2px solid rgba(168, 85, 247, 0.2);
  border-top-color: #a855f7;
  border-radius: 50%;
  width: 1.25em;
  height: 1.25em;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  animation: slideIn 0.2s ease-out forwards;
  background: rgba(39, 39, 42, 0.95);
  border: 1px solid rgba(63, 63, 70, 0.5);
  backdrop-filter: blur(12px);
  color: #f4f4f5;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.toast.hiding { animation: fadeIn 0.2s ease-out reverse forwards; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #18181b; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #52525b; }

/* Code blocks */
code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.8125em;
  color: #d8b4fe;
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-content.open {
  max-height: 1000px;
}
.accordion-icon {
  transition: transform 0.3s ease;
}
.accordion-icon.rotated {
  transform: rotate(180deg);
}

/* Table */
.data-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}
.data-table thead {
  background: rgba(24, 24, 27, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6875rem;
  color: #a1a1aa;
  font-weight: 600;
}
.data-table th, .data-table td {
  padding: 0.75rem 1.5rem;
  text-align: left;
}
.data-table tbody tr {
  border-top: 1px solid rgba(63, 63, 70, 0.5);
  transition: background 0.15s ease;
}
.data-table tbody tr:hover {
  background: rgba(63, 63, 70, 0.3);
}

/* Hero gradient orbs (decorative background) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}
.hero-orb-1 {
  background: #a855f7;
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}
.hero-orb-2 {
  background: #6366f1;
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
}
