* { box-sizing: border-box; }
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f4f6f8;
  margin: 0;
  color: #222;
}
nav {
  background: #1e3a5f;
  padding: 14px 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
}
nav a.active, nav a:hover {
  background: #33587e;
}
nav .brand {
  font-size: 18px;
  margin-right: auto;
}
main {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 24px;
}
.card h2 {
  margin-top: 0;
  font-size: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #555;
  gap: 4px;
}
input {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  min-width: 160px;
}
button {
  background: #1e3a5f;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
button:hover {
  background: #33587e;
}
button.secondary {
  background: #6c757d;
}
button.secondary:hover {
  background: #828a91;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
th {
  background: #f0f2f5;
}
.result {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: pre-wrap;
  display: none;
}
.result.show {
  display: block;
}
.result.ok {
  background: #e6f4ea;
  color: #1e6b34;
}
.result.err {
  background: #fdecea;
  color: #a02a24;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.dashboard-grid a {
  text-decoration: none;
  color: #1e3a5f;
  background: #fff;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.dashboard-grid a:hover {
  background: #eef2f7;
}
