:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-main: #f8fafc;
    --surface: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
body { background: var(--bg-main); color: var(--text-dark); min-height: 100vh; }

.d-none { display: none !important; }

/* Auth Layout */
.auth-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: #0f172a; }
.auth-card { background: var(--surface); padding: 36px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); width: 100%; max-width: 440px; border: 1px solid var(--border); }
.auth-header { text-align: center; margin-bottom: 24px; }
.badge-logo { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; padding: 4px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 10px; }
.auth-header h2 { font-size: 20px; color: var(--text-dark); margin-bottom: 6px; }
.auth-header p { font-size: 13px; color: var(--text-muted); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; font-size: 14px; font-weight: 600; border-radius: 6px; cursor: pointer; border: none; transition: 0.2s; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #e2e8f0; color: #334155; }
.btn-secondary:hover { background: #cbd5e1; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: #eff6ff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-danger-sm { background: #fee2e2; color: var(--danger); padding: 4px 8px; border-radius: 4px; border: none; cursor: pointer; font-size: 12px; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-close { background: transparent; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); }

/* Navbar */
.navbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.brand-badge { background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.nav-user { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.user-role-badge { background: #e0e7ff; color: #4338ca; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.btn-logout { background: transparent; border: 1px solid var(--border); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }

/* Main Layout */
.main-content { max-width: 1200px; margin: 24px auto; padding: 0 20px; }
.profile-card { background: var(--surface); padding: 20px; border-radius: 10px; border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.profile-info h3 { font-size: 18px; margin-bottom: 4px; }
.profile-info p { font-size: 13px; color: var(--text-muted); }
.calendar-summary { text-align: right; font-size: 13px; color: var(--text-muted); }

/* FTE Summary Card */
.fte-summary-card { background: var(--surface); padding: 20px; border-radius: 10px; border: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.fte-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.fte-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.fte-subvalue { font-size: 16px; font-weight: 600; color: var(--text-dark); }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-normal { background: #dcfce7; color: #166534; }
.status-underload { background: #fef9c3; color: #854d0e; }
.status-high { background: #ffedd5; color: #9a3412; }
.status-overload { background: #fee2e2; color: #991b1b; }

/* Tables */
.table-container { background: var(--surface); border-radius: 10px; border: 1px solid var(--border); padding: 20px; margin-bottom: 24px; }
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.table-wla { width: 100%; border-collapse: collapse; text-align: left; }
.table-wla th, .table-wla td { padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.table-wla th { background: #f8fafc; color: #475569; font-weight: 600; }
.table-wla input, .table-wla select { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; }

/* Alerts & Action Footer */
.alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-top: 14px; }
.alert-error { background: #fee2e2; color: var(--danger); }
.alert-success { background: #dcfce7; color: var(--success); }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.action-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); }
.action-buttons { display: flex; gap: 12px; }

/* Dashboard HR & Modal */
.dashboard-header-card { background: var(--surface); padding: 20px; border-radius: 10px; border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filter-group { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.filter-group select { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.65); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-card { background: #fff; width: 90%; max-width: 900px; max-height: 90vh; border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-table-wrap { max-height: 250px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 15px; }
.modal-summary-box { background: #f8fafc; padding: 12px 16px; border-radius: 6px; display: flex; justify-content: space-between; font-size: 14px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: #f8fafc; }