/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.15; }
a { color: var(--yellow); text-decoration: none; }
a:hover { color: var(--yellow-dark); }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--grey-800);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ── Forms ──────────────────────────────────────────────────── */
input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--duration) var(--ease),
              box-shadow   var(--duration) var(--ease);
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-dim);
}
input::placeholder { color: var(--text-dim); }
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
select option { background: var(--card); }

/* ── Buttons ────────────────────────────────────────────────── */
button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
button:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-yellow {
  background: var(--yellow);
  color: #0a0a0a;
  padding: 10px 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-yellow:hover:not(:disabled) {
  background: #ffd23f;
  transform: translateY(-1px);
  box-shadow: var(--shadow-yellow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 10px 22px;
  border: 1px solid var(--border2);
}
.btn-outline:hover:not(:disabled) { border-color: var(--yellow); color: var(--yellow); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 14px;
}
.btn-ghost:hover:not(:disabled) { color: var(--text); }

.btn-danger {
  background: transparent;
  color: var(--red);
  padding: 8px 14px;
  border: 1px solid transparent;
}
.btn-danger:hover:not(:disabled) { border-color: var(--red); background: var(--red-dim); }

/* ── Utils ──────────────────────────────────────────────────── */
.section-title {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}
.field-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Loader */
.loader {
  text-align: center;
  padding: 80px;
  color: var(--text-dim);
  font-size: 13px;
}
.loader::after {
  content: '';
  display: block;
  width: 28px; height: 28px;
  margin: 16px auto 0;
  border: 2px solid var(--border2);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 20px; }

/* Scrollbar */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--grey-600); }

@media (max-width: 900px) { html { font-size: 14px; } }
