/* ClaudePulse - Bespoke Modern SaaS Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: light dark;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme tokens - Light mode default */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --color-brand: #0f172a;
  --color-brand-accent: #059669;

  /* Scrollbars */
  scrollbar-color: #cbd5e1 transparent;
}

html.dark {
  --bg-page: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-subtle: #1e293b;
  --border-subtle: #1e293b;
  --border-strong: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --color-brand: #ffffff;
  --color-brand-accent: #10b981;

  scrollbar-color: #334155 transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on, 'zero' on;
}

/* Subtle background texture */
.bg-grid-subtle {
  background-image: radial-gradient(rgba(148, 163, 184, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
}

html.dark .bg-grid-subtle {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
}

/* Premium Card Styles */
.card-clean {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.875rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-clean:hover {
  border-color: var(--border-strong);
}

/* Custom badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1rem;
  border-width: 1px;
}

.badge-emerald {
  background-color: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
html.dark .badge-emerald {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-amber {
  background-color: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
html.dark .badge-amber {
  background-color: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.badge-rose {
  background-color: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}
html.dark .badge-rose {
  background-color: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.25);
}

.badge-indigo {
  background-color: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}
html.dark .badge-indigo {
  background-color: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.25);
}

.badge-slate {
  background-color: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}
html.dark .badge-slate {
  background-color: rgba(51, 65, 85, 0.4);
  color: #94a3b8;
  border-color: rgba(71, 85, 105, 0.5);
}

/* Pulse animation */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.9);
  }
}

.pulse-live {
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Slide-over Drawer */
.drawer-backdrop {
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-panel {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.drawer-closed {
  pointer-events: none !important;
  visibility: hidden;
}

.drawer-closed .drawer-panel {
  transform: translateX(100%);
  pointer-events: none !important;
}

.drawer-closed .drawer-backdrop {
  opacity: 0;
  pointer-events: none !important;
}

/* Code container */
.code-box {
  background-color: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
}

/* Clean Form Inputs */
.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

html.dark .form-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
