@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* --- COLOR PALETTE (Vibrant Rose) --- */
    --primary: #E11D48;        /* Rose 600 - Main Brand Color */
    --primary-dark: #BE123C;   /* Rose 700 - Hover State */
    --primary-soft: #FFF1F2;   /* Rose 50 - Backgrounds/Accents */

    --text-main: #0F172A;      /* Slate 900 */
    --text-muted: #64748B;     /* Slate 500 */

    --bg-body: #F8FAFC;        /* Slate 50 */
    --card-bg: #FFFFFF;

    /* --- SHADOWS (Modern & Soft) --- */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-glow: 0 20px 25px -5px rgba(225, 29, 72, 0.25), 0 10px 10px -5px rgba(225, 29, 72, 0.1);
}

/* --- GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- BACKGROUND DECORATION (Animated Blobs) --- */
.bg-decoration {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    overflow: hidden; pointer-events: none;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #FFE4E6; animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; width: 400px; height: 400px; background: #E0E7FF; animation-delay: 5s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 40px); }
    100% { transform: translate(0, 0); }
}

/* --- AUTH PAGE (Login/Register) --- */
body.auth-page {
    display: flex; justify-content: center; align-items: center; padding: 20px;
}
.auth-card {
    background: rgba(255, 255, 255, 0.75); /* Glass Effect */
    backdrop-filter: blur(20px);
    width: 100%; max-width: 420px; padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,0.8);
    text-align: center;
}

/* --- DASHBOARD LAYOUT --- */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0 5%; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
}
.brand {
    font-weight: 800; font-size: 22px;
    background: linear-gradient(135deg, var(--primary) 0%, #F43F5E 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: flex; align-items: center; gap: 10px;
}

.main-content {
    max-width: 1100px; margin: 30px auto; padding: 0 20px;
    display: flex; flex-direction: column; gap: 25px;
}

/* --- COMPACT HERO STEPPER --- */
.hero-compact {
    background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    border-radius: 16px;
    padding: 25px 40px;
    color: white;
    box-shadow: var(--shadow-glow);
    position: relative; overflow: hidden;
}
/* Pattern Overlay */
.hero-compact::before {
    content: ""; position: absolute; top: 0; right: 0; width: 300px; height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stepper-header {
    display: flex; align-items: center; justify-content: space-between;
    position: relative; z-index: 2;
}
.progress-line-container {
    position: absolute; top: 40px; left: 60px; right: 60px; height: 3px; background: rgba(255,255,255,0.2); z-index: 1;
}
.progress-line-fill {
    height: 100%; background: #fff; width: 0%; transition: width 0.5s ease; box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.step-item-small {
    display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2;
    cursor: default; opacity: 0.7; transition: 0.3s;
}
.step-item-small.active, .step-item-small.done { opacity: 1; }

.step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: white; margin-bottom: 8px;
    transition: 0.3s;
}
/* Active State */
.step-item-small.active .step-dot {
    background: #fff; color: var(--primary); border-color: #fff; transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}
/* Done State */
.step-item-small.done .step-dot {
    background: #10B981; border-color: #10B981; color: #fff; /* Emerald Green */
}
.step-label-small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- REAL FORM STYLES --- */
.form-container {
    background: #fff; border-radius: 20px; box-shadow: var(--shadow-card);
    overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.5);
}
.form-body { padding: 30px; }

.section-title {
    font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 25px;
    display: flex; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px dashed #E2E8F0;
}
.section-icon {
    width: 36px; height: 36px; background: var(--primary-soft); color: var(--primary);
    border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* Inputs with Icons */
.input-group { margin-bottom: 20px; }
.input-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }

.input-wrapper { position: relative; }
.input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 20px; pointer-events: none;
}
.input-field {
    width: 100%; padding: 14px 14px 14px 48px; /* Padding Left besar utk icon */
    border-radius: 12px; border: 1px solid #E2E8F0; background: #F8FAFC;
    outline: none; transition: 0.2s; font-family: inherit; color: var(--text-main); font-size: 15px;
}
textarea.input-field { padding-top: 14px; /* Fix align for textarea */ }
.input-field:focus {
    border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-soft);
}

/* Upload Box Component */
.upload-box {
    border: 2px dashed #CBD5E1; border-radius: 12px; padding: 25px;
    text-align: center; cursor: pointer; transition: 0.2s; background: #F8FAFC;
}
.upload-box:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-icon { font-size: 32px; color: var(--text-muted); margin-bottom: 8px; }
.upload-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Form Footer & Buttons */
.form-footer {
    padding: 20px 30px; background: #F8FAFC; border-top: 1px solid #E2E8F0;
    display: flex; justify-content: flex-end; gap: 12px;
}
.btn-primary {
    padding: 12px 24px; background: var(--primary); color: white;
    border: none; border-radius: 12px; font-weight: 700; font-size: 15px;
    cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
    display: flex; align-items: center; gap: 8px; justify-content: center;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(225, 29, 72, 0.3); background: var(--primary-dark); }

.btn-secondary {
    padding: 12px 20px; background: white; border: 1px solid #E2E8F0; border-radius: 12px;
    font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.2s;
}
.btn-secondary:hover { background: #F1F5F9; color: var(--text-main); }

/* Dynamic Form Sections (Animation) */
.form-section { display: none; animation: slideUpFade 0.4s ease forwards; }
.form-section.active { display: block; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SIDEBAR INFO --- */
.sidebar-info {
    background: #fff; padding: 24px; border-radius: 16px; border: 1px solid #E2E8F0;
    margin-bottom: 20px; box-shadow: var(--shadow-soft);
}
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-rose { background: var(--primary-soft); color: var(--primary); }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .hero-compact { padding: 20px; }
    .progress-line-container { left: 30px; right: 30px; }
    .step-label-small { font-size: 9px; } /* Smaller text on mobile */
    .step-dot { width: 28px; height: 28px; font-size: 12px; }

    /* Stack Grid on Mobile */
    .dashboard-page .main-content > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    .form-body { padding: 20px; }
    .form-footer { flex-direction: column-reverse; } /* Tombol tumpuk */
    .btn-primary, .btn-secondary { width: 100%; }

    .hide-mobile { display: none; }
    .navbar { padding: 0 20px; }
}

/* Utilities */
select.input-field { appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 14px top 50%; background-size: 12px auto; }