:root {
  --ink: #191919;
  --gray-light: #f0f0f0;
  --gray-dark: #6b6b6b;
  --accent: #191919;
  font-family: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--gray-light);
  color: var(--ink);
}

#app { min-height: 100vh; }

.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-form {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  width: 320px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.login-form h1 { font-size: 1.1rem; margin: 0 0 20px; }

.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 0.8rem; color: var(--gray-dark); }
.field input, .field select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

.error-message { color: #b3261e; font-size: 0.85rem; margin-top: 8px; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; background: #fff; border-bottom: 1px solid #e0e0e0;
}

.project-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; padding: 24px;
}

.project-card {
  background: #fff; border-radius: 8px; padding: 16px; min-height: 120px;
  display: flex; flex-direction: column; gap: 8px; border: 1px solid #e0e0e0;
}

.project-card--empty {
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--gray-dark); font-size: 2rem; border-style: dashed;
}

.badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; width: fit-content; }
.badge--publicado { background: #dff5df; color: #1a6b1a; }
.badge--rascunho { background: #f0e6d0; color: #8a6d1f; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: #fff; border-radius: 8px; padding: 24px; width: 420px;
  max-height: 90vh; overflow-y: auto;
}

.placeholder-screen { padding: 48px; text-align: center; color: var(--gray-dark); }

table {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 24px;
}

table th {
  background: #f5f5f5;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-dark);
  border-bottom: 1px solid #e0e0e0;
}

table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

table tr:last-child td { border-bottom: none; }
