* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Arial, sans-serif;
    margin: 0;
    background: #f4f5f7;
    color: #222;
}
.navbar {
    background: #1f2937;
    padding: 14px 24px;
    display: flex;
    gap: 20px;
    align-items: center;
}
.navbar a { color: #e5e7eb; text-decoration: none; font-size: 15px; }
.navbar a.brand { color: #fff; font-weight: 700; font-size: 18px; margin-right: 20px; }
.navbar a:hover { color: #fff; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

h1 { font-size: 24px; margin-bottom: 16px; }
h2 { font-size: 18px; margin-top: 28px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: #f9fafb; font-weight: 600; }
tr:hover { background: #fafbfc; }

.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
.btn:hover { background: #1d4ed8; }
.btn-secondary { background: #6b7280; }
.btn-secondary:hover { background: #4b5563; }
.btn-danger { background: #dc2626; }

.toolbar { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }

form.card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-width: 600px;
}
label { display: block; margin-top: 12px; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #444; }
input, select, textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}
textarea { min-height: 70px; }

.stat-cards { display: flex; gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: #fff;
    padding: 16px 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    flex: 1;
}
.stat-card .value { font-size: 26px; font-weight: 700; }
.stat-card .label { font-size: 13px; color: #666; }

.badge { padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-overdue { background: #fee2e2; color: #b91c1c; }
.badge-upcoming { background: #fef3c7; color: #92400e; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #e5e7eb; color: #4b5563; }

.error-box { background: #fee2e2; color: #991b1b; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.empty { color: #888; font-style: italic; padding: 12px 0; }
