:root {
  --blue: #006bbe;
  --blue-dark: #00508f;
  --text-dark: #242424;
  --text-mid: #414141;
  --text-light: #737373;
  --border: #dfdfdf;
  --bg: #f7f8fa;
  --danger: #b3261e;
  --archived: #8a8a8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
}

.topbar {
  background: var(--blue);
  color: white;
  padding: 20px 32px;
}

.brand-mark {
  font-size: 20px;
  font-weight: 600;
  display: block;
}

.brand-sub {
  font-size: 13px;
  opacity: 0.85;
}

.container {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 24px;
}

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-header h1 {
  font-size: 20px;
  color: var(--blue);
  margin: 0;
}

.btn {
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-secondary {
  background: white;
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--bg); }

.btn-text {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
}

.btn-text.danger { color: var(--danger); }

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
}

.filter-btn.active {
  background: var(--blue);
  color: white;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-card.archived {
  opacity: 0.6;
}

.project-info h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.project-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
}

.project-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

.status-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e6f4ea;
  color: #1e7e34;
  margin-left: 8px;
}

.status-badge.archived {
  background: #eee;
  color: var(--archived);
}

.project-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.empty-state {
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
  padding: 32px 0;
}

.search-box {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  font-family: inherit;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-backdrop.hidden { display: none; }

.modal {
  background: white;
  border-radius: 8px;
  padding: 24px;
  width: 90%;
  max-width: 420px;
}

.modal h2 {
  margin: 0 0 16px;
  font-size: 17px;
  color: var(--blue);
}

.modal label {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  margin: 12px 0 4px;
}

.modal input, .modal textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
