:root {
    --primary: #2563eb;
    --dark: #1e293b;
    --light: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--light); color: var(--dark); overflow-x: hidden; }

/* NAVBAR */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; transition: 0.3s; }
.btn-nav { background: var(--primary); color: white !important; padding: 8px 20px; border-radius: 20px; }

/* HERO */
.hero { display: flex; align-items: center; justify-content: space-between; min-height: 90vh; padding: 0 5%; background: linear-gradient(to right, #f8fafc 50%, #eff6ff 50%); }
.hero-content { max-width: 500px; }
.hero-content h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 1rem; }
.highlight { color: var(--primary); }
.btn-primary { padding: 15px 30px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform 0.2s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); }
.blob { width: 400px; height: 400px; background: linear-gradient(45deg, var(--primary), #93c5fd); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; animation: morph 8s infinite; }
@keyframes morph { 0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; } 50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } }

/* FEATURES */
.features { display: flex; justify-content: center; gap: 2rem; padding: 4rem 5%; background: white; }
.feature-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; flex: 1; border-top: 4px solid var(--primary); }

/* APP SECTION */
.app-section { padding: 5rem 20px; background: var(--dark); color: white; display: flex; justify-content: center; }
.container { background: white; padding: 2.5rem; border-radius: 16px; width: 100%; max-width: 700px; color: var(--dark); }
.container header { text-align: center; margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
input, select { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; background: #fff; }
.btn-full { width: 100%; padding: 14px; background: var(--dark); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 1rem; }
.btn-full:hover { background: #0f172a; }

/* RESULT CARD */
.result-card { margin-top: 2rem; padding: 1.5rem; background: #ecfdf5; border: 1px solid #10b981; border-radius: 8px; text-align: center; }
.hidden { display: none; }
.salary-range { font-size: 2rem; font-weight: 800; color: #059669; margin: 10px 0; }
.insight { font-size: 0.9rem; color: #047857; }
footer { text-align: center; padding: 2rem; color: #94a3b8; font-size: 0.9rem; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; justify-content: center; }
    .features { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .blob { width: 250px; height: 250px; margin: 0 auto; }
}


.umr-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 10px 0 15px 0;
    line-height: 1.5;
}

/* Warna jika gaji di atas UMR (Hijau/Biru) */
.umr-badge.good {
    background-color: #dbeafe; /* Biru muda */
    color: #1e40af; /* Biru tua */
    border: 1px solid #93c5fd;
}

/* Warna jika gaji di bawah UMR (Kuning/Oranye) */
.umr-badge.bad {
    background-color: #fef9c3; /* Kuning muda */
    color: #854d0e; /* Coklat/Oranye tua */
    border: 1px solid #fde047;
}

.hidden {
    display: none !important;
}

.retry-text {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-text:hover {
    color: var(--primary);
    transform: translateY(-2px);
}




.preset-wrapper {
    margin-bottom: 1.5rem;
    text-align: center;
}

.preset-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #475569;
}

.preset-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.preset-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}



/* === AUTO-FILLED VISUAL EFFECT === */
.auto-filled {
    border: 2px solid var(--primary) !important;
    background-color: #eff6ff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

@keyframes readyPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
    70% { box-shadow: 0 0 0 6px rgba(37,99,235,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

.auto-filled.pulse {
    animation: readyPulse 0.6s ease-out;
}



.salary-delta {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 8px;
}

.salary-delta.up {
    color: #16a34a;
}

.salary-delta.down {
    color: #dc2626;
}


.insight-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #334155;
    background: #f1f5f9;
    padding: 10px 12px;
    border-radius: 8px;
}


/* === VISUAL DIFF (CHANGED FIELD) === */
.changed-field {
    border: 2px dashed #f59e0b !important;
    background-color: #fffbeb !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
}