 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }

 body {
     font-family: 'Segoe UI', system-ui, sans-serif;
     background: var(--color-background-tertiary, #f5f5f0);
     color: var(--color-text-primary, #1a1a1a);
     min-height: 100vh;
 }

 /* AUTH */
 #auth-screen {
     display: flex;
     align-items: center;
     justify-content: center;
     min-height: 100vh;
     padding: 2rem;
 }

 .auth-card {
     background: var(--color-background-primary, #fff);
     border: 0.5px solid var(--color-border-tertiary, rgba(0, 0, 0, 0.12));
     border-radius: 16px;
     padding: 2.5rem;
     width: 100%;
     max-width: 420px;
 }

 .logo-mark {
     display: flex;
     align-items: center;
     gap: 10px;
     margin-bottom: 2rem;
 }

 .logo-icon {
     width: 36px;
     height: 36px;
     background: #1B4FD8;
     border-radius: 8px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .logo-icon svg {
     width: 20px;
     height: 20px;
     fill: #fff;
 }

 .logo-text {
     font-size: 18px;
     font-weight: 600;
     letter-spacing: -0.3px;
 }

 .logo-sub {
     font-size: 11px;
     color: var(--color-text-secondary, #666);
     letter-spacing: 0.5px;
     text-transform: uppercase;
 }

 .auth-title {
     font-size: 22px;
     font-weight: 500;
     margin-bottom: 0.4rem;
 }

 .auth-sub {
     font-size: 14px;
     color: var(--color-text-secondary, #666);
     margin-bottom: 1.8rem;
 }

 .role-tabs {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 8px;
     margin-bottom: 1.5rem;
 }

 .role-tab {
     padding: 10px;
     border: 0.5px solid var(--color-border-secondary, rgba(0, 0, 0, 0.25));
     border-radius: 8px;
     background: transparent;
     cursor: pointer;
     font-size: 13px;
     font-weight: 500;
     color: var(--color-text-secondary, #666);
     transition: all 0.15s;
 }

 .role-tab.active {
     background: #1B4FD8;
     color: #fff;
     border-color: #1B4FD8;
 }

 .form-group {
     margin-bottom: 1rem;
 }

 .form-label {
     font-size: 12px;
     font-weight: 500;
     color: var(--color-text-secondary, #666);
     margin-bottom: 4px;
     display: block;
     letter-spacing: 0.3px;
     text-transform: uppercase;
 }

 .form-input {
     width: 100%;
     padding: 10px 12px;
     border: 0.5px solid var(--color-border-secondary, rgba(0, 0, 0, 0.25));
     border-radius: 8px;
     font-size: 14px;
     background: var(--color-background-primary, #fff);
     color: var(--color-text-primary, #1a1a1a);
     outline: none;
 }

 .form-input:focus {
     border-color: #1B4FD8;
     box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.12);
 }

 .btn-primary {
     width: 100%;
     padding: 11px;
     background: #1B4FD8;
     color: #fff;
     border: none;
     border-radius: 8px;
     font-size: 14px;
     font-weight: 500;
     cursor: pointer;
     margin-top: 0.5rem;
 }

 .btn-primary:hover {
     background: #1540b8;
 }

 .demo-hint {
     font-size: 12px;
     color: var(--color-text-tertiary, #999);
     text-align: center;
     margin-top: 1rem;
 }

 /* APP SHELL */
 #app {
     display: none;
     min-height: 100vh;
 }

 .sidebar {
     position: fixed;
     top: 0;
     left: 0;
     width: 220px;
     height: 100vh;
     background: #0F2057;
     display: flex;
     flex-direction: column;
     z-index: 100;
 }

 .sidebar-logo {
     padding: 1.25rem 1.25rem 1rem;
     border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
 }

 .sidebar-logo .logo-text {
     color: #fff;
     font-size: 15px;
 }

 .sidebar-logo .logo-sub {
     color: rgba(255, 255, 255, 0.5);
 }

 .sidebar-user {
     padding: 1rem 1.25rem;
     border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
 }

 .sidebar-user-name {
     color: #fff;
     font-size: 13px;
     font-weight: 500;
 }

 .sidebar-user-role {
     color: rgba(255, 255, 255, 0.5);
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: 0.4px;
 }

 .sidebar-nav {
     flex: 1;
     padding: 0.75rem 0;
     overflow-y: auto;
 }

 .nav-section {
     padding: 0.5rem 1.25rem 0.25rem;
     font-size: 10px;
     letter-spacing: 0.8px;
     text-transform: uppercase;
     color: rgba(255, 255, 255, 0.35);
 }

 .nav-item {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 9px 1.25rem;
     cursor: pointer;
     color: rgba(255, 255, 255, 0.7);
     font-size: 13px;
     font-weight: 400;
     transition: all 0.12s;
 }

 .nav-item:hover {
     background: rgba(255, 255, 255, 0.08);
     color: #fff;
 }

 .nav-item.active {
     background: rgba(27, 79, 216, 0.4);
     color: #fff;
     border-right: 2px solid #4F82F7;
 }

 .nav-icon {
     width: 16px;
     height: 16px;
     opacity: 0.9;
     flex-shrink: 0;
 }

 .sidebar-footer {
     padding: 1rem 1.25rem;
     border-top: 0.5px solid rgba(255, 255, 255, 0.1);
 }

 .logout-btn {
     background: none;
     border: 0.5px solid rgba(255, 255, 255, 0.2);
     border-radius: 6px;
     color: rgba(255, 255, 255, 0.6);
     font-size: 12px;
     padding: 7px 12px;
     cursor: pointer;
     width: 100%;
 }

 .logout-btn:hover {
     background: rgba(255, 255, 255, 0.08);
     color: #fff;
 }

 .main-content {
     margin-left: 220px;
     padding: 2rem;
     min-height: 100vh;
 }

 .page {
     display: none;
 }

 .page.active {
     display: block;
 }

 .page-header {
     margin-bottom: 1.75rem;
 }

 .page-title {
     font-size: 22px;
     font-weight: 500;
 }

 .page-sub {
     font-size: 14px;
     color: var(--color-text-secondary, #666);
     margin-top: 2px;
 }

 /* CARDS */
 .card {
     background: var(--color-background-primary, #fff);
     border: 0.5px solid var(--color-border-tertiary, rgba(0, 0, 0, 0.12));
     border-radius: 12px;
     padding: 1.25rem;
 }

 .card-title {
     font-size: 13px;
     font-weight: 500;
     color: var(--color-text-secondary, #666);
     text-transform: uppercase;
     letter-spacing: 0.4px;
     margin-bottom: 0.5rem;
 }

 .card-value {
     font-size: 26px;
     font-weight: 500;
 }

 .card-note {
     font-size: 12px;
     color: var(--color-text-tertiary, #999);
     margin-top: 3px;
 }

 .stats-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
     gap: 12px;
     margin-bottom: 1.5rem;
 }

 .stat-card {
     background: var(--color-background-secondary, #f8f8f5);
     border-radius: 10px;
     padding: 1rem;
 }

 /* BADGE */
 .badge {
     display: inline-block;
     font-size: 11px;
     font-weight: 500;
     padding: 3px 8px;
     border-radius: 20px;
 }

 .badge-blue {
     background: #E6F1FB;
     color: #0C447C;
 }

 .badge-green {
     background: #EAF3DE;
     color: #27500A;
 }

 .badge-amber {
     background: #FAEEDA;
     color: #633806;
 }

 .badge-red {
     background: #FCEBEB;
     color: #791F1F;
 }

 .badge-gray {
     background: #F1EFE8;
     color: #444441;
 }

 /* TABLE */
 .table-wrap {
     overflow-x: auto;
 }

 table {
     width: 100%;
     border-collapse: collapse;
     font-size: 13px;
 }

 th {
     text-align: left;
     padding: 8px 12px;
     font-size: 11px;
     font-weight: 500;
     color: var(--color-text-secondary, #666);
     text-transform: uppercase;
     letter-spacing: 0.4px;
     border-bottom: 0.5px solid var(--color-border-tertiary, rgba(0, 0, 0, 0.12));
 }

 td {
     padding: 11px 12px;
     border-bottom: 0.5px solid var(--color-border-tertiary, rgba(0, 0, 0, 0.07));
     vertical-align: middle;
 }

 tr:last-child td {
     border-bottom: none;
 }

 tr:hover td {
     background: var(--color-background-secondary, #f8f8f5);
 }

 /* PAYSLIP */
 .payslip-section {
     margin-bottom: 1rem;
 }

 .payslip-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 8px 0;
     border-bottom: 0.5px solid var(--color-border-tertiary, rgba(0, 0, 0, 0.07));
     font-size: 14px;
 }

 .payslip-row:last-child {
     border-bottom: none;
 }

 .payslip-label {
     color: var(--color-text-secondary, #666);
 }

 .payslip-value {
     font-weight: 500;
 }

 .payslip-value.deduction {
     color: #A32D2D;
 }

 .payslip-value.positive {
     color: #3B6D11;
 }

 .divider {
     border: none;
     border-top: 0.5px solid var(--color-border-secondary, rgba(0, 0, 0, 0.2));
     margin: 1rem 0;
 }

 /* SCHEDULE */
 .week-grid {
     display: grid;
     grid-template-columns: repeat(7, 1fr);
     gap: 6px;
 }

 .day-card {
     border-radius: 8px;
     padding: 10px 6px;
     text-align: center;
 }

 .day-name {
     font-size: 10px;
     font-weight: 500;
     text-transform: uppercase;
     letter-spacing: 0.4px;
     color: var(--color-text-secondary, #666);
     margin-bottom: 4px;
 }

 .day-date {
     font-size: 16px;
     font-weight: 500;
     margin-bottom: 6px;
 }

 .day-shift {
     font-size: 10px;
 }

 .day-work {
     background: #E6F1FB;
 }

 .day-work .day-date {
     color: #185FA5;
 }

 .day-work .day-shift {
     color: #0C447C;
 }

 .day-off {
     background: var(--color-background-secondary, #f8f8f5);
 }

 .day-today {
     background: #1B4FD8;
 }

 .day-today .day-name,
 .day-today .day-date,
 .day-today .day-shift {
     color: #fff;
 }

 /* EMPLOYEE FORM */
 .form-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1rem;
 }

 .btn-outline {
     padding: 9px 18px;
     background: transparent;
     border: 0.5px solid var(--color-border-secondary, rgba(0, 0, 0, 0.25));
     border-radius: 8px;
     font-size: 13px;
     cursor: pointer;
     color: var(--color-text-primary, #1a1a1a);
 }

 .btn-outline:hover {
     background: var(--color-background-secondary, #f8f8f5);
 }

 .btn-action {
     padding: 9px 18px;
     background: #1B4FD8;
     border: none;
     border-radius: 8px;
     font-size: 13px;
     cursor: pointer;
     color: #fff;
 }

 .btn-action:hover {
     background: #1540b8;
 }

 .btn-sm {
     padding: 5px 10px;
     font-size: 12px;
     border-radius: 6px;
     border: 0.5px solid var(--color-border-secondary, rgba(0, 0, 0, 0.2));
     background: transparent;
     cursor: pointer;
     color: var(--color-text-primary);
 }

 .btn-sm:hover {
     background: var(--color-background-secondary);
 }

 .actions-row {
     display: flex;
     gap: 8px;
     align-items: center;
     justify-content: flex-end;
     margin-top: 1rem;
 }

 /* TAX BREAKDOWN CHART */
 .tax-bar-row {
     display: flex;
     align-items: center;
     gap: 10px;
     margin-bottom: 10px;
 }

 .tax-bar-label {
     font-size: 13px;
     color: var(--color-text-secondary, #666);
     width: 170px;
     flex-shrink: 0;
 }

 .tax-bar-track {
     flex: 1;
     height: 8px;
     background: var(--color-background-secondary, #f0f0ec);
     border-radius: 4px;
     overflow: hidden;
 }

 .tax-bar-fill {
     height: 100%;
     border-radius: 4px;
     transition: width 0.4s ease;
 }

 .tax-bar-amount {
     font-size: 13px;
     font-weight: 500;
     width: 100px;
     text-align: right;
     flex-shrink: 0;
 }

 /* NOTIFICATIONS */
 .alert {
     border-radius: 8px;
     padding: 12px 14px;
     font-size: 13px;
     margin-bottom: 1rem;
 }

 .alert-info {
     background: #E6F1FB;
     color: #0C447C;
     border: 0.5px solid #B5D4F4;
 }

 /* AVATAR */
 .avatar {
     width: 34px;
     height: 34px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 13px;
     font-weight: 500;
     flex-shrink: 0;
 }

 .two-col {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1.25rem;
 }

 .three-col {
     display: grid;
     grid-template-columns: 1fr 1fr 1fr;
     gap: 1.25rem;
 }

 @media (max-width: 900px) {

     .two-col,
     .three-col {
         grid-template-columns: 1fr;
     }

     .form-grid {
         grid-template-columns: 1fr;
     }
 }

 .section-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     margin-bottom: 1rem;
 }

 .section-title {
     font-size: 15px;
     font-weight: 500;
 }

 .text-muted {
     color: var(--color-text-secondary, #666);
 }

 .text-sm {
     font-size: 13px;
 }

 .mt-1 {
     margin-top: 0.5rem;
 }

 .mt-2 {
     margin-top: 1rem;
 }

 .mt-3 {
     margin-top: 1.5rem;
 }

 .gap-sm {
     gap: 8px;
 }

 .flex {
     display: flex;
 }

 .items-center {
     align-items: center;
 }

 .justify-between {
     justify-content: space-between;
 }