:root {
  --primary: #2b5797;
  --primary-dark: #1e3f70;
  --bg: #f4f6f9;
  --card-bg: #ffffff;
  --border: #e0e4eb;
  --text: #222;
  --muted: #6b7280;
  --danger-bg: #fdecea;
  --danger-text: #b3261e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  padding: 14px 28px;
  color: white;
  flex-wrap: wrap;
}
.navbar .brand {
  color: white;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover { text-decoration: underline; }
.user-pill {
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}
.card.narrow { max-width: 420px; margin: 40px auto; }

h1 { margin-top: 0; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}
form input[type=text],
form input[type=email],
form input[type=password],
form input[type=file],
form select,
form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}
form.inline-form { display: flex; gap: 10px; align-items: center; }
form.inline-form select { width: auto; margin-top: 0; }

button, .button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .button:hover { background: var(--primary-dark); }

.alert {
  background: var(--danger-bg);
  color: var(--danger-text);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.notice {
  background: #e6f4ea;
  color: #1e5e34;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.required { color: #d21e1e; font-weight: 700; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.table th, .table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.table th { background: #eef1f6; font-size: 0.85rem; text-transform: uppercase; color: #555; }
.table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-submitted { background: #e0e7ff; color: #3730a3; }
.badge-under_review { background: #fef3c7; color: #92400e; }
.badge-partial_acceptance { background: #ffe4c7; color: #9a4d0a; }
.badge-accepted { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

.review-card { border-left: 4px solid var(--primary); }
