@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* Layout */
.container { max-width: 480px; margin: 0 auto; padding: 2rem 1.5rem; }
.container-wide { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Nav */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .logo { font-weight: 600; font-size: 1.1rem; text-decoration: none; color: var(--text); }
nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 4rem 1.5rem 3rem; }
.hero h1 { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.hero p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-full { width: 100%; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.card h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password] {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  transition: border-color 0.15s;
}
input:focus { outline: none; border-color: var(--accent); }

.checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; }
.checkbox-item { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.checkbox-item input { width: auto; }
.checkbox-item span { font-size: 0.95rem; }
.checkbox-item small { color: var(--muted); font-size: 0.8rem; }

/* Alert */
.alert { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; margin-bottom: 1rem; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }

/* Dashboard grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
}
.project-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(37,99,235,0.08); }
.project-card.pending { opacity: 0.5; pointer-events: none; }
.project-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.project-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.project-card p { font-size: 0.85rem; color: var(--muted); }
.badge { display: inline-block; font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 99px; margin-top: 0.5rem; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }

/* Page title */
.page-title { margin-bottom: 1.5rem; }
.page-title h1 { font-size: 1.75rem; font-weight: 600; }
.page-title p { color: var(--muted); margin-top: 0.25rem; }

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Link */
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }

.text-center { text-align: center; }
.text-muted { color: var(--muted); font-size: 0.9rem; }
.mt-1 { margin-top: 0.5rem; }
