* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    margin: 0;
    color: #1f2430;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 30px 20px; }
.centered { display: flex; align-items: center; justify-content: center; min-height: 100vh; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar h1 { font-size: 22px; margin: 0; }

.link-btn {
    text-decoration: none; color: #2e5aac; font-size: 14px; font-weight: 600;
}

.card {
    background: #fff; border-radius: 10px; padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 20px;
}
.card h2 { margin-top: 0; font-size: 18px; }

form label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: #444; }
form input, form select {
    width: 100%; padding: 10px 12px; border: 1px solid #d7d9de; border-radius: 6px; font-size: 14px;
}
form button {
    margin-top: 20px; background: #2e5aac; color: #fff; border: none;
    padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer;
}
form button:hover { background: #244887; }

.error { color: #b3261e; background: #fdecea; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.success { color: #1e6b3a; background: #e8f5ea; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.muted { color: #777; font-size: 13px; }

.stats { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-box {
    background: #fff; border-radius: 10px; padding: 18px 22px; flex: 1; min-width: 120px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); text-align: center;
}
.stat-box span { display: block; font-size: 26px; font-weight: 700; color: #2e5aac; margin-bottom: 4px; }

.nav-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.nav-card {
    background: #fff; border-radius: 10px; padding: 20px; text-decoration: none; color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: transform 0.1s;
}
.nav-card:hover { transform: translateY(-2px); }
.nav-card h3 { margin: 0 0 8px; font-size: 15px; color: #2e5aac; }
.nav-card p { margin: 0; font-size: 13px; color: #666; }

table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
table th, table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; }
table th { color: #666; font-weight: 600; }

@media (max-width: 600px) {
    .nav-grid { grid-template-columns: 1fr; }
}
