* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f4f8;
    color: #1a202c;
    min-height: 100vh;
}
.header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
    color: white;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header svg { flex-shrink: 0; }
.header h1 { font-size: 22px; font-weight: 600; }
.header p { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.container {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 20px;
}
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 28px;
    margin-bottom: 20px;
}
.card h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card h2 .badge {
    background: #e8f0fe;
    color: #1e3a5f;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.period-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.period-grid.two { grid-template-columns: 1fr 1fr; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.form-group select, .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a202c;
    background: #fafbfc;
    transition: border-color 0.2s;
}
.form-group select:focus, .form-group input:focus {
    outline: none;
    border-color: #2d5a8e;
    background: white;
}
.dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
}
.dropzone:hover, .dropzone.dragover {
    border-color: #2d5a8e;
    background: #e8f0fe;
}
.dropzone svg { margin-bottom: 12px; }
.dropzone p { font-size: 14px; color: #64748b; }
.dropzone .main-text { font-size: 15px; color: #1e3a5f; font-weight: 500; margin-bottom: 4px; }
.dropzone .hint { font-size: 12px; color: #94a3b8; margin-top: 8px; font-style: italic; }
.file-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f0f7ff;
    border-radius: 8px;
    font-size: 13px;
}
.file-item .name { font-weight: 500; color: #1e3a5f; }
.file-item .remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}
.file-item .remove:hover { background: #fee2e2; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #1e3a5f, #2d5a8e);
    color: white;
    width: 100%;
    justify-content: center;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-download {
    background: #059669;
    color: white;
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}
.btn-download:hover { background: #047857; }
.results { display: none; }
.results.show { display: block; }
.employee-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
}
.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.employee-name { font-weight: 600; font-size: 15px; color: #1e3a5f; }
.employee-avs { font-size: 12px; color: #64748b; font-family: monospace; }
.salary-amount {
    font-size: 22px;
    font-weight: 700;
    color: #059669;
}
.salary-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}
.detail-table th {
    text-align: left;
    padding: 6px 10px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
}
.detail-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #f1f5f9;
}
.detail-table td.num { text-align: right; font-family: monospace; }
.detail-table tr:last-child td { border-bottom: none; }
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 10px;
    border: 1px solid #bbf7d0;
}
.total-label { font-weight: 600; color: #166534; }
.total-value { font-size: 24px; font-weight: 700; color: #059669; }
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}
.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
