/* base.css - Variables, reset, typography */
:root {
  --primary:       #1B3A6B;
  --primary-dark:  #132c52;
  --gold:          #C9A84C;
  --gold-dark:     #a8892f;
  --danger:        #dc2626;
  --success:       #16a34a;
  --warning:       #d97706;
  --text:          #111827;
  --muted:         #64748b;
  --bg:            #f1f5f9;
  --surface:       #ffffff;
  --border:        #e2e8f0;
  --radius:        8px;
  --shadow:        0 1px 3px rgba(0,0,0,.1);
  --shadow-lg:     0 4px 16px rgba(0,0,0,.12);
  --mono:          'Courier New', monospace;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--primary); }

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary   { background: var(--primary);  color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: #e2e8f0; color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: #cbd5e1; }
.btn-ghost     { background: transparent; color: var(--primary); }
.btn-ghost:hover:not(:disabled) { background: #e8ecf4; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-sm  { padding: 0.35rem 0.8rem;  font-size: 0.85rem; }
.btn-xs  { padding: 0.2rem  0.55rem; font-size: 0.78rem; }
.btn-full { width: 100%; justify-content: center; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

input[type="text"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,58,107,.15);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-active       { background: #dcfce7; color: #15803d; }
.status-complete     { background: #dbeafe; color: #1d4ed8; }
.status-discontinued { background: #f1f5f9; color: var(--muted); }

/* Utility */
.hidden  { display: none !important; }
.muted   { color: var(--muted); }
.error-msg { color: var(--danger); font-size: 0.85rem; padding: 0.4rem 0; }
.empty-state { color: var(--muted); font-style: italic; text-align: center; padding: 1rem; }

/* Deploy footer */
#deploy-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  color: #cbd5e1;
  background: transparent;
  pointer-events: none;
  z-index: 50;
}
