/* ==========================================================================
   Bit of Web (BOW) — Modern Dark Theme Stylesheet
   ========================================================================== */

:root {
  --bow-bg: #0b0f19;
  --bow-surface: #111827;
  --bow-card: #1e293b;
  --bow-border: #334155;
  --bow-border-glow: rgba(6, 182, 212, 0.35);
  --bow-cyan: #06b6d4;
  --bow-cyan-bright: #22d3ee;
  --bow-indigo: #8b5cf6;
  --bow-emerald: #10b981;
  --bow-text: #f8fafc;
  --bow-muted: #94a3b8;
}

body {
  background-color: var(--bow-bg);
  color: var(--bow-text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism Cards */
.bow-glass {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bow-glass-card {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bow-glass-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(6, 182, 212, 0.2);
}

/* Gradient Texts & Accents */
.bow-gradient-text {
  background: linear-gradient(135deg, #22d3ee 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bow-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bow-glow-cyan {
  box-shadow: 0 0 35px -5px rgba(6, 182, 212, 0.35);
}

.bow-glow-indigo {
  box-shadow: 0 0 35px -5px rgba(139, 92, 246, 0.35);
}

/* Grid Background */
.bow-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Code Block & Terminal Styling */
.bow-terminal {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.bow-terminal-header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

pre.bow-code, code.bow-code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Menlo, Consolas, monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* ==========================================================================
   Appointment Picker Dark Theme & Progress Steps Styling
   ========================================================================== */
.appointment-picker .steps {
  position: relative;
  min-height: 4.5rem;
}

.appointment-picker .steps .step {
  --step-bg: #1e293b;
  --step-fg: #94a3b8;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Base inactive track line */
.appointment-picker .steps .step:before {
  content: "" !important;
  height: 4px !important;
  background-color: #334155 !important;
  border: none !important;
  top: 18px !important;
  opacity: 1 !important;
  z-index: 0 !important;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Hide line on the very first step */
.appointment-picker .steps .step:first-child:before,
.appointment-picker .steps .step:first-of-type:before {
  display: none !important;
  content: none !important;
}

/* Base inactive bubble */
.appointment-picker .steps .step:after {
  background-color: #0b0f19 !important;
  border: 2px solid #334155 !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  box-shadow: 0 0 0 4px #0b0f19 !important;
  z-index: 1 !important;
  transition: all 0.3s ease;
}

/* Active Step text and bubble */
.appointment-picker .steps .step.step-primary {
  color: #22d3ee !important;
  font-weight: 700 !important;
}

.appointment-picker .steps .step.step-primary:after {
  background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
  border: 2px solid #67e8f9 !important;
  color: #0b0f19 !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.55), 0 0 0 4px #0b0f19 !important;
}

/* Active connecting line (via DaisyUI + combinator OR via our .line-primary class) */
.appointment-picker .steps .step.step-primary + .step.step-primary:before,
.appointment-picker .steps .step.line-primary:before {
  background: linear-gradient(90deg, #06b6d4, #8b5cf6) !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5) !important;
  height: 4px !important;
  border: none !important;
  opacity: 1 !important;
}

.appointment-picker .steps .step .step-label {
  margin-top: 0.5rem;
  display: inline-block;
  line-height: 1.25;
}

.appointment-picker .card {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.appointment-picker input,
.appointment-picker textarea,
.appointment-picker select {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

.appointment-picker input:focus,
.appointment-picker textarea:focus,
.appointment-picker select:focus {
  border-color: #06b6d4 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3) !important;
}

/* Active links in documentation */
.doc-nav-link.active {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border-left: 2px solid #06b6d4;
  font-weight: 600;
}

/* ==========================================================================
   Universal Responsive Grid Engine (Guaranteed 12-Column Layouts)
   ========================================================================== */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

.col-span-1 { grid-column: span 1 / span 1 !important; }
.col-span-2 { grid-column: span 2 / span 2 !important; }
.col-span-3 { grid-column: span 3 / span 3 !important; }
.col-span-4 { grid-column: span 4 / span 4 !important; }
.col-span-5 { grid-column: span 5 / span 5 !important; }
.col-span-6 { grid-column: span 6 / span 6 !important; }
.col-span-7 { grid-column: span 7 / span 7 !important; }
.col-span-8 { grid-column: span 8 / span 8 !important; }
.col-span-9 { grid-column: span 9 / span 9 !important; }
.col-span-10 { grid-column: span 10 / span 10 !important; }
.col-span-11 { grid-column: span 11 / span 11 !important; }
.col-span-12 { grid-column: span 12 / span 12 !important; }
.col-span-full { grid-column: 1 / -1 !important; }

@media (min-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .sm\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .sm\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .sm\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .sm\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .sm\:col-span-6 { grid-column: span 6 / span 6 !important; }
  .sm\:col-span-12 { grid-column: span 12 / span 12 !important; }
}

@media (min-width: 768px) {
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

  .md\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .md\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .md\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .md\:col-span-6 { grid-column: span 6 / span 6 !important; }
  .md\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .md\:col-span-8 { grid-column: span 8 / span 8 !important; }
  .md\:col-span-9 { grid-column: span 9 / span 9 !important; }
  .md\:col-span-10 { grid-column: span 10 / span 10 !important; }
  .md\:col-span-11 { grid-column: span 11 / span 11 !important; }
  .md\:col-span-12 { grid-column: span 12 / span 12 !important; }
  .md\:col-span-full { grid-column: 1 / -1 !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

  .lg\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-6 { grid-column: span 6 / span 6 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
  .lg\:col-span-9 { grid-column: span 9 / span 9 !important; }
  .lg\:col-span-10 { grid-column: span 10 / span 10 !important; }
  .lg\:col-span-11 { grid-column: span 11 / span 11 !important; }
  .lg\:col-span-12 { grid-column: span 12 / span 12 !important; }
  .lg\:col-span-full { grid-column: 1 / -1 !important; }
}

