:root {
  --bg: #FAFAF7; --card: #FFFFFF; --accent: #1B5E40; --accent-lt: #E6F2EC;
  --gold: #C8922A; --gold-lt: #FDF5E6; --text: #111; --muted: #777;
  --border: #E8E6E0; --border-lt: #F3F1EC;
  --green: #1B9E5A; --green-bg: #E6F9EF;
  --orange: #D97706; --orange-bg: #FEF3E2;
  --red: #DC2626; --red-bg: #FEE2E2;
  --radius: 14px; --sm: 10px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100dvh; }
input, textarea, button, select { font-family: inherit; }
.app-container { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; padding-bottom: 80px; }
.app-header { padding: 18px 18px 14px; background: var(--card); border-bottom: 1px solid var(--border-lt); position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; }
.app-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.app-subtitle { font-size: 13px; color: var(--muted); margin-top: 1px; }
.app-content { padding: 18px; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: var(--card); border-top: 1px solid var(--border-lt); display: flex; justify-content: space-around; padding: 7px 0 max(18px, env(safe-area-inset-bottom)); z-index: 50; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px 12px; color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 500; position: relative; }
.nav-item.active { color: var(--accent); font-weight: 800; }
.nav-item.active::before { content: ''; position: absolute; top: -7px; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.nav-badge { position: absolute; top: -5px; right: -9px; width: 15px; height: 15px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: var(--sm); font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:disabled { background: var(--border); color: var(--muted); opacity: 0.6; cursor: default; }
.btn-green { background: var(--green); color: #fff; }
.btn-red-outline { background: transparent; border: 2px solid var(--red); color: var(--red); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--muted); }
.btn-full { width: 100%; }
.btn-icon { background: none; border: 1px solid var(--border); border-radius: 10px; padding: 7px 9px; cursor: pointer; display: flex; color: var(--muted); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.balance-row { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.balance-card { flex: 1; min-width: 140px; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.balance-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.balance-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.balance-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.balance-number { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.balance-total { font-size: 14px; font-weight: 400; color: var(--muted); }
.balance-bar { height: 4px; background: var(--border-lt); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.balance-fill { height: 100%; border-radius: 2px; transition: width 0.4s; }
.balance-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.request-card { padding: 14px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.request-info { flex: 1; }
.request-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.type-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.request-dates { font-size: 14px; font-weight: 600; }
.request-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.request-days { font-size: 18px; font-weight: 800; color: var(--accent); }
.empty-state { text-align: center; padding: 36px 20px; color: var(--muted); font-size: 14px; }
.admin-request-card { padding: 16px; margin-bottom: 10px; }
.request-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.days-badge { background: var(--accent-lt); border-radius: 8px; padding: 3px 12px; font-weight: 800; color: var(--accent); font-size: 16px; }
.action-row { display: flex; gap: 8px; margin-top: 12px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending { background: var(--orange-bg); color: var(--orange); }
.badge-approved { background: var(--green-bg); color: var(--green); }
.badge-rejected { background: var(--red-bg); color: var(--red); }
.badge-cancelled { background: var(--border-lt); color: var(--muted); }
.stats-row { display: flex; gap: 10px; margin-bottom: 22px; }
.stat-card { flex: 1; background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); text-align: center; }
.stat-number { font-size: 26px; font-weight: 800; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.employee-row { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.employee-row.bordered { border-bottom: 1px solid var(--border-lt); }
.filter-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-tab { padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,0.04); position: relative; }
.filter-tab.active { background: var(--accent); color: #fff; }
.filter-badge { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input { width: 100%; padding: 13px 14px; border: 2px solid var(--border); border-radius: var(--sm); font-size: 16px; outline: none; background: var(--bg); transition: border-color 0.2s; }
.form-input:focus { border-color: var(--accent); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.divider { border: none; height: 1px; background: var(--border-lt); margin: 18px 0; }
.type-selector { flex: 1; display: flex; }
.type-selector input[type="radio"] { display: none; }
.type-selector span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: var(--sm); border: 2px solid var(--border); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; color: var(--muted); }
.type-selector input:checked + span { border-color: var(--accent); background: var(--accent-lt); color: var(--accent); }
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; }
.modal-overlay.hidden { display: none !important; }
.modal-sheet { background: var(--card); border-radius: 22px 22px 0 0; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; padding: 22px 20px 28px; }
.modal-handle { width: 32px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 18px; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); padding: 11px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 200; max-width: 88%; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,0.2); transition: opacity 0.3s; }
.toast-success { background: var(--accent); color: #fff; }
.toast-error { background: var(--red); color: #fff; }
.alert { padding: 10px 12px; border-radius: var(--sm); font-size: 13px; margin-bottom: 14px; line-height: 1.4; }
.alert-error { background: var(--red-bg); color: var(--red); }
.section-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.login-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(145deg, #1B5E40 0%, #0A2A1A 100%); }
.login-brand { text-align: center; margin-bottom: 36px; }
.login-brand .login-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; }
.login-brand h1 { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.login-brand p { color: rgba(255,255,255,0.55); font-size: 14px; margin-top: 6px; }
.login-card { width: 100%; max-width: 360px; background: #fff; border-radius: 20px; padding: 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.hidden { display: none !important; }
@media (max-width: 360px) { .balance-row, .stats-row { flex-direction: column; } }
