* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b3d91, #1d4ed8);
}

.login-box {
  width: min(420px, 90vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  padding: 32px 28px;
}

.login-box h1 {
  margin-top: 0;
  text-align: center;
  color: #0b3d91;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-weight: 600;
  color: #374151;
}

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

button {
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 10px;
  background: #0b3d91;
  color: white;
  font-weight: 700;
}

button:hover {
  background: #123d9c;
}

.alert {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b3d91;
  color: #fff;
  padding: 16px 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.topbar nav a {
  color: #e0ecff;
  text-decoration: none;
  font-weight: 600;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.stat-card span {
  display: block;
  color: #6b7280;
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 2rem;
  color: #0b3d91;
}

.card-form {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #eef4ff;
  color: #1f2937;
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
