* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f5f6f8; color: #222; }
.topnav { display: flex; justify-content: space-between; align-items: center; background: #1f2937; color: #fff; padding: 12px 24px; }
.topnav a { color: #fff; text-decoration: none; margin-left: 16px; font-size: 14px; }
.topnav a:hover { text-decoration: underline; }
.brand { font-weight: 700; }
.container { max-width: 900px; margin: 24px auto; padding: 0 16px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.page-head-left { display: flex; align-items: center; gap: 12px; }
.page-head-left .back-btn { margin-bottom: 0; }
.page-head-left h1 { margin: 0; }
h1 { font-size: 22px; }
.muted { color: #888; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
.table th { background: #f0f1f3; }
.btn { display: inline-block; background: #2563eb; color: #fff; border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer; text-decoration: none; font-size: 14px; }
.btn-danger { background: #dc2626; margin-left: 8px; }
.badge { padding: 4px 10px; border-radius: 12px; font-size: 12px; color: #fff; background: #6b7280; }
.badge-diajukan { background: #f59e0b; }
.badge-disetujui_atasan { background: #3b82f6; }
.badge-ditolak_atasan { background: #dc2626; }
.badge-diproses_ga { background: #8b5cf6; }
.badge-selesai { background: #16a34a; }
.form-card, .detail-card { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.form-card label, .detail-card label { display: block; margin-top: 12px; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.form-card .row { display: flex; gap: 16px; }
.form-card .row > div { flex: 1; }
.alert-error { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 6px; }
.alert-success { background: #dcfce7; color: #166534; padding: 10px 14px; border-radius: 6px; }
.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; background: #1f2937; }
.login-box { background: #fff; padding: 32px; border-radius: 8px; width: 320px; }
.login-box label { display: block; margin-top: 12px; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.login-box input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.login-box button { margin-top: 16px; width: 100%; background: #2563eb; color: #fff; border: none; padding: 10px; border-radius: 6px; cursor: pointer; }
.login-logo { text-align: center; margin-bottom: 8px; }
.login-logo img { max-height: 60px; }

.back-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 16px; color: #374151; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.15); text-decoration: none; }
.back-btn:hover { background: #f0f1f3; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.hub-tile { background: #fff; border-radius: 10px; padding: 24px; text-align: center; text-decoration: none; color: #1f2937; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: transform 0.1s; }
.hub-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.hub-tile .icon { font-size: 32px; margin-bottom: 10px; }
.hub-tile .title { font-weight: 700; }
.hub-tile .desc { font-size: 13px; color: #888; margin-top: 4px; }
.hub-tile-disabled { opacity: 0.5; cursor: not-allowed; }
.hub-tile-disabled:hover { transform: none; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.tnc-box { max-height: 220px; overflow-y: auto; border: 1px solid #ddd; border-radius: 6px; padding: 14px; background: #fafafa; font-size: 13px; line-height: 1.6; margin-top: 8px; }
.tnc-box h4 { margin: 12px 0 4px; font-size: 13px; }
.tnc-checkbox { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; }
.tnc-checkbox input { width: auto; margin-top: 3px; }
