        :root {
            --primary: #2563eb;
            --primary-dark: #1e40af;
            --success: #059669;
            --danger: #dc2626;
            --warning: #d97706;
            --bg: #f8fafc;
            --card: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --border: #e2e8f0;
            --terminal: #0f172a;
        }

        body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text-main); margin: 0; padding: 20px; line-height: 1.5; }
        .container { max-width: 1300px; margin: auto; }
        
        header { 
            display: flex; justify-content: space-between; align-items: center; 
            padding-bottom: 20px; border-bottom: 2px solid var(--border); margin-bottom: 25px;
        }

        .grid { display: grid; grid-template-columns: 350px 1fr; gap: 20px; }
        .panel { background: var(--card); padding: 20px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; }
        
        .scenario-box { 
            background: #fff7ed; border: 2px solid #fed7aa; padding: 20px; 
            border-radius: 8px; margin-bottom: 25px; animation: pulse 2s infinite;
        }
        @keyframes pulse { 0% { box-shadow: 0 0 0 0px rgba(217, 119, 6, 0.2); } 100% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); } }

        table { width: 100%; border-collapse: collapse; margin-top: 10px; }
        th { text-align: left; padding: 12px; background: #f1f5f9; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); }
        td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }

        .btn { padding: 10px 16px; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; transition: 0.2s; font-size: 0.8rem; }
        .btn-primary { background: var(--primary); color: white; }
        .btn-danger { background: var(--danger); color: white; }
        .btn-success { background: var(--success); color: white; }
        .btn-ghost { background: #f1f5f9; color: var(--text-main); border: 1px solid var(--border); }
        .btn-ghost:hover { background: #e2e8f0; }

        .log-box { 
            background: var(--terminal); color: #38bdf8; padding: 15px; 
            border-radius: 8px; font-family: 'Courier New', monospace; font-size: 0.75rem; 
            height: 250px; overflow-y: auto; line-height: 1.4;
        }

        .badge { padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; }
        .badge-err { background: #fee2e2; color: #991b1b; }
        .badge-warn { background: #fef3c7; color: #92400e; }
        .badge-success { background: #dcfce7; color: #166534; }
        
        .tab-content { display: none; }
        .active { display: block; }
        .nav-tabs { display: flex; gap: 5px; margin-bottom: 0; }
        .nav-tab { padding: 12px 24px; cursor: pointer; border-radius: 8px 8px 0 0; background: #e2e8f0; font-size: 0.85rem; }
        .nav-tab.active { background: var(--card); border: 1px solid var(--border); border-bottom: none; font-weight: bold; color: var(--primary); }

        .form-group { margin-bottom: 12px; }
        label { display: block; font-size: 0.75rem; font-weight: bold; margin-bottom: 4px; color: var(--text-main); }
        input, select { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 4px; box-sizing: border-box; font-size: 0.85rem; }
        .solution-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 15px; }

        .payslip-preview { 
            background: white; border: 2px solid #000; padding: 20px; 
            font-family: 'Courier New', Courier, monospace; color: #000;
            max-width: 500px; margin: auto;
        }