* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f4f1;
  color: #222;
}

.topbar {
  background: #1f2a24;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .brand {
  font-weight: 600;
  font-size: 16px;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
}

.topbar a:hover { opacity: 1; }

.wrap {
  max-width: 420px;
  margin: 48px auto;
  padding: 0 16px;
}

.wrap.wide {
  max-width: 720px;
}

.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e4e2dc;
  padding: 28px 28px 24px;
}

h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

p.subtitle {
  color: #666;
  font-size: 14px;
  margin: 0 0 20px;
}

label {
  display: block;
  font-size: 13px;
  color: #444;
  margin-bottom: 4px;
  margin-top: 14px;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="time"], select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc9c0;
  font-size: 14px;
  background: #fff;
}

button, .btn {
  margin-top: 20px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: none;
  background: #2f6d4f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

button:hover, .btn:hover { background: #275c42; }

.btn-secondary {
  background: transparent;
  color: #2f6d4f;
  border: 1px solid #2f6d4f;
}
.btn-secondary:hover { background: #eaf3ee; }

.footer-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}

.footer-link a { color: #2f6d4f; text-decoration: none; }

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.alert-error {
  background: #fdecec;
  color: #a12b2b;
  border: 1px solid #f3c6c6;
}

.alert-success {
  background: #eaf6ec;
  color: #216b3c;
  border: 1px solid #c6ead0;
}

.alert-info {
  background: #eef3fb;
  color: #2c4f82;
  border: 1px solid #c9d9f2;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eaf3ee;
  color: #2f6d4f;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}

th {
  color: #666;
  font-weight: 500;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  background: #fafaf8;
  border: 1px solid #e4e2dc;
  border-radius: 10px;
  padding: 16px;
}

.mini-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.mini-card p {
  margin: 0;
  font-size: 13px;
  color: #666;
}
