/* ===============================
   RESET
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f9fafb;
  color: #111827;
  line-height: 1.6;
}

/* ===============================
   LINKS
================================ */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===============================
   BUTTONS
================================ */
.btn,
.primary-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.primary-btn {
  background: #2563eb;
  color: #ffffff;
}

.primary-btn:hover {
  background: #1d4ed8;
}

.btn.success { background: #22c55e; color:#fff; }
.btn.danger  { background: #ef4444; color:#fff; }
.btn.secondary { background:#9ca3af; color:#fff; }

/* ===============================
   ALERTS
================================ */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin: 12px 0;
  font-size: 14px;
}

.alert.success { background:#dcfce7; color:#166534; }
.alert.error   { background:#fee2e2; color:#991b1b; }
.alert.info    { background:#e0f2fe; color:#075985; }

/* ===============================
   GRID HELPERS
================================ */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
