/* VPSLAB Design Tokens — warm, earthy, professional */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors */
  --bg: #FAF9F5;
  --bg-deep: #F0EDE6;
  --surface: #FFFFFF;
  --surface-2: #F5F3EE;
  --border: #E2DFD6;

  --fg: #1A1A18;
  --fg-soft: #4A4A44;
  --muted: #8C8A80;

  --accent: #D97757;
  --accent-ink: #B35636;
  --accent-soft: rgba(217,119,87,0.12);
  --accent-hover: #C46545;

  --success: #2F8F5A;
  --warn: #B88B2C;
  --danger: #C43E30;
  --info: #3B7DD8;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Radii */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); color: var(--fg); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

/* Utility classes */
.text-mute { color: var(--muted); }
.text-accent { color: var(--accent-ink); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11.5px; }
.mono { font-family: var(--font-mono); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: 14px; line-height: 1;
  padding: 10px 20px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  background: transparent; color: var(--fg-soft); border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--fg-soft); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.btn-lg { font-size: 15px; padding: 13px 28px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px; font-weight: 500; color: var(--fg-soft);
}
.form-input {
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  font-size: 14px; color: var(--fg); transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-input::placeholder { color: var(--muted); }
.form-hint { font-size: 12px; color: var(--muted); }
.form-error { font-size: 12px; color: var(--danger); }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%238C8A80' d='M6 8L1 3h10z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}

/* Brand */
.brand-mark { display: inline-flex; width: 28px; height: 28px; color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }

/* Status pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 4px;
}
.pill.ok { background: #DBE9DE; color: #1E6A40; }
.pill.warn { background: #F2E0B6; color: #7C5510; }
.pill.danger { background: #F2DAD5; color: #8A2E22; }
.pill.dim { background: var(--bg-deep); color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Alert/Toast */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #DBE9DE; color: #1E6A40; }
.alert-danger { background: #F2DAD5; color: #8A2E22; }
.alert-warn { background: #F2E0B6; color: #7C5510; }
.alert-info { background: #D6E5F7; color: #1E4D7E; }

/* Loading spinner */
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive container */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
