* {
  font-family: 'Poppins', sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 24px -4px rgba(59, 130, 246, 0.08);
}
.dark .glass-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.3);
}

.hover-scale {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-scale:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 12px 32px -8px rgba(59, 130, 246, 0.25);
}

/* Ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}
.dark .skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 37%, #1e293b 63%);
  background-size: 400% 100%;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Bounce slow (error pages) */
.animate-bounce-slow {
  animation: bounce-slow 2.5s infinite;
}
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Code tabs */
.code-tab {
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.code-tab:hover {
  color: #3b82f6;
}
.code-tab.active-tab {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

/* Sidebar link active state */
.sidebar-link.active-link {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

/* Progress bar */
.progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  animation: progress-anim 1.2s ease-in-out infinite;
}
@keyframes progress-anim {
  0% { width: 0%; margin-left: 0%; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

.resp-tab {
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.resp-tab:hover {
  color: #3b82f6;
}
.resp-tab.active-tab {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}
.resp-panel {
  display: none;
}
.resp-panel.active-panel {
  display: block;
}

.method-badge-GET { background: rgba(16,185,129,0.12); color: #059669; }
.dark .method-badge-GET { background: rgba(16,185,129,0.18); color: #34d399; }
.method-badge-POST { background: rgba(59,130,246,0.12); color: #2563eb; }
.dark .method-badge-POST { background: rgba(59,130,246,0.18); color: #60a5fa; }
.method-badge-PUT { background: rgba(245,158,11,0.14); color: #b45309; }
.dark .method-badge-PUT { background: rgba(245,158,11,0.18); color: #fbbf24; }
.method-badge-PATCH { background: rgba(168,85,247,0.14); color: #7e22ce; }
.dark .method-badge-PATCH { background: rgba(168,85,247,0.18); color: #c084fc; }
.method-badge-DELETE { background: rgba(239,68,68,0.14); color: #dc2626; }
.dark .method-badge-DELETE { background: rgba(239,68,68,0.18); color: #f87171; }

.filedrop {
  border: 1.5px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(241, 245, 249, 0.5);
}
.filedrop:hover, .filedrop.drag-over {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}
.dark .filedrop {
  border-color: #334155;
  background: rgba(30, 41, 59, 0.4);
}
.dark .filedrop:hover, .dark .filedrop.drag-over {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
}

.jt-key { color: #7dd3fc; }
.jt-string { color: #86efac; }
.jt-number { color: #fca5a5; }
.jt-boolean { color: #fdba74; }
.jt-null { color: #94a3b8; }
.jt-toggle {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  width: 0.9rem;
  color: #64748b;
}
.jt-collapsed > .jt-children {
  display: none;
}
.jt-line {
  white-space: pre;
  max-width: 100%;
}
.jt-children {
  margin-left: 1.1rem;
  border-left: 1px solid rgba(148,163,184,0.25);
  padding-left: 0.6rem;
}

.media-frame {
  background: repeating-conic-gradient(#f8fafc 0% 25%, #eef2f7 0% 50%) 50% / 18px 18px;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dark .media-frame {
  background: repeating-conic-gradient(#1e293b 0% 25%, #172033 0% 50%) 50% / 18px 18px;
}

/* Category marquee on the landing page */
.marquee-track {
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

