/* styles.css */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --navy-900: #050c16;
  --navy-800: #0b1b2b;
  --navy-700: #10253b;
  --navy-600: #1b3654;
  --ink: #0d0f14;
  --accent: #b9d309;
  --accent-2: #d8f04d;
  --text-strong: #f2f6ff;
  --text-muted: #adc0d8;
  --text-soft: #8ea6c2;
  --card: rgba(16, 37, 59, 0.9);
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { font-size: 16px; }

html, body { height: 100%; }

body {
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(185, 211, 9, 0.06), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(185, 211, 9, 0.08), transparent 28%),
              linear-gradient(145deg, var(--navy-900), var(--navy-700));
  color: var(--text-strong);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(185, 211, 9, 0.25), transparent 60%);
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  inset: auto auto -18% -12%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(34, 206, 255, 0.2), transparent 55%);
  filter: blur(50px);
  opacity: 0.5;
  pointer-events: none;
}

main, header, footer { position: relative; z-index: 1; }

details > summary { cursor: pointer; }

button { transition: transform 140ms ease, box-shadow 140ms ease, background-color 160ms ease; }
button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: 0.55; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(185, 211, 9, 0.18), rgba(16, 37, 59, 0.25));
  opacity: 0.6;
  pointer-events: none;
}

.soft-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(185, 211, 9, 0.12);
  color: var(--text-strong);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(185, 211, 9, 0.35);
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--text-strong);
}

.field {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(11, 27, 43, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.field:focus-within {
  border-color: rgba(185, 211, 9, 0.65);
  box-shadow: 0 0 0 4px rgba(185, 211, 9, 0.15);
}

.input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,0.05);
  color: var(--text-strong);
}

.input::placeholder { color: rgba(255,255,255,0.45); }

.input:focus {
  border-color: rgba(185, 211, 9, 0.85);
  box-shadow: 0 0 0 4px rgba(185, 211, 9, 0.14);
  background: rgba(255,255,255,0.08);
}

.input.error {
  border-color: rgba(220, 38, 38, 0.85);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.08);
}

.help-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(16, 37, 59, 0.85);
  padding: 12px;
  color: var(--text-muted);
}

.fade-in { animation: fadeIn 120ms ease-out; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { appearance: textfield; }

.pill {
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-strong);
  font-weight: 600;
  transition: all 150ms ease;
}

.pill:hover { border-color: rgba(185, 211, 9, 0.45); }

.pill-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(185, 211, 9, 0.25);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Notas flotantes */
.notes-wrapper {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(185,211,9,0.16));
  color: var(--text-strong);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.notes-panel {
  width: 260px;
  max-width: calc(100vw - 32px);
}

.notes-textarea {
  resize: vertical;
  min-height: 140px;
}

.text-sm { font-size: 15px !important; line-height: 1.55 !important; }
.text-xs { font-size: 13px !important; line-height: 1.45 !important; }

/* Tailwind color overrides to match the new palette */
.bg-white { background-color: var(--card) !important; }
.bg-slate-50 { background-color: var(--glass) !important; }
.bg-slate-200 { background-color: rgba(255,255,255,0.12) !important; }
.bg-slate-900 { background-color: var(--accent) !important; color: var(--ink) !important; }
.hover\:bg-slate-50:hover { background-color: rgba(255,255,255,0.08) !important; }
.hover\:bg-slate-800:hover { background-color: var(--accent-2) !important; color: var(--ink) !important; }

.text-slate-900 { color: var(--text-strong) !important; }
.text-slate-700 { color: #c6d4e8 !important; }
.text-slate-600 { color: var(--text-muted) !important; }
.text-slate-500 { color: var(--text-soft) !important; }

.border-slate-200 { border-color: var(--border) !important; }
.border-slate-300 { border-color: rgba(255,255,255,0.18) !important; }

.bg-amber-50 { background-color: rgba(185, 211, 9, 0.12) !important; }
.text-amber-900 { color: #d6e94f !important; }
.border-amber-200 { border-color: rgba(185, 211, 9, 0.55) !important; }

/* Progress bar */
.h-2.bg-slate-200 { background-color: rgba(255,255,255,0.16) !important; }
.h-2.bg-slate-900 { background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important; }

/* Checkbox */
input[type="checkbox"] { accent-color: var(--accent); }
