* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: #f4f6f8; color: #222; }

.topbar { display: flex; justify-content: space-between; align-items: center; background: #1b3a5c; color: #fff; padding: 14px 24px; }
.topbar-right a { color: #fff; margin-left: 16px; text-decoration: none; }

.nav { background: #24486e; display: flex; padding: 0 24px; }
.nav a { color: #dce6f0; padding: 12px 16px; text-decoration: none; font-size: 14px; }
.nav a.active, .nav a:hover { background: #1b3a5c; color: #fff; }

.container { padding: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 8px; padding: 16px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 4px solid #1b3a5c; }
.stat-card.warn { border-left-color: #d9822b; }
.stat-card.ok { border-left-color: #2e8b57; }
.stat-num { display: block; font-size: 24px; font-weight: 700; }
.stat-label { display: block; font-size: 12px; color: #666; margin-top: 4px; }

.action-bar { background: #fff3cd; border: 1px solid #ffe08a; padding: 12px 16px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.btn { background: #1b3a5c; color: #fff; padding: 8px 14px; border-radius: 4px; text-decoration: none; font-size: 13px; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.data-table th { background: #f0f2f5; }

.badge { padding: 3px 8px; border-radius: 10px; font-size: 12px; color: #fff; }
.badge-pending { background: #d9822b; }
.badge-paid { background: #2e8b57; }
.badge-rejected { background: #c0392b; }

.login-page { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box { background: #fff; padding: 32px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 300px; }
.login-box h2 { margin-bottom: 16px; text-align: center; }
.login-box label { display: block; margin-top: 12px; font-size: 13px; color: #555; }
.login-box input { width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #ccc; border-radius: 4px; }
.login-box button { width: 100%; margin-top: 20px; padding: 10px; background: #1b3a5c; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.error { color: #c0392b; font-size: 13px; margin-bottom: 8px; }

.search-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.search-bar input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.search-bar select { padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.btn-clear { padding: 8px 14px; color: #555; text-decoration: none; }

.student-summary { background: #fff; padding: 16px 20px; border-radius: 8px; margin: 16px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.student-summary h2 { margin-bottom: 6px; }
.student-summary p { color: #555; font-size: 14px; margin: 2px 0; }

.service-form { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.service-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 16px 0 20px; }
.service-card { border: 2px solid #ddd; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; }
.service-card input { position: absolute; top: 10px; left: 10px; }
.service-card:has(input:checked) { border-color: #1b3a5c; background: #eef3f8; }
.service-name { font-weight: 600; margin-top: 10px; }
.service-price { color: #2e8b57; font-weight: 700; margin-top: 4px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border: none; cursor: pointer; }