@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --bg-app: #f4f4f5;
    --surface: #ffffff;
    --text-primary: #09090b;
    --text-secondary: #71717a;
    --border: #e4e4e7;
    --brand-primary: #000000;
    --brand-blue: #2563eb;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --warning: #ea580c;
    --warning-bg: #ffedd5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-app); color: var(--text-primary); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-primary); }
a { text-decoration: none; color: inherit; }

/* --- APP LAYOUT --- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 50; }
.sidebar-header { padding: 24px; border-bottom: 1px solid var(--border); font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 1.4rem; }
.sidebar-nav { padding: 24px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: all 0.2s; }
.nav-link:hover { background: var(--bg-app); color: var(--text-primary); }
.nav-link.active { background: var(--text-primary); color: var(--surface); }

.main-panel { flex: 1; margin-left: 260px; padding: 40px 60px; max-width: 1400px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.page-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.5px; }

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease; }
.btn-primary { background: var(--brand-primary); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-primary:hover { background: #27272a; transform: translateY(-1px); }
.btn-primary:disabled { background: var(--text-secondary); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text-primary); }
.btn-outline:hover { background: var(--bg-app); border-color: #d4d4d8; }

/* --- PREMIUM FORM STYLING --- */
.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 8px; }

.form-control, input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: #fcfcfd;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.file-upload {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}
.file-upload i { display: block; font-size: 2rem; margin-bottom: 8px; color: var(--brand-blue); }
.file-upload:hover { border-color: var(--brand-blue); background: #eff6ff; color: var(--brand-blue); }

/* --- WIZARD / ONBOARDING --- */
.wizard-container { width: 100%; max-width: 700px; background: var(--surface); padding: 48px; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.wizard-progress { display: flex; gap: 8px; margin-bottom: 40px; }
.progress-bar { flex: 1; height: 6px; background: var(--border); border-radius: 4px; transition: 0.3s ease; }
.progress-bar.active { background: var(--brand-blue); }

.toggle-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    margin-bottom: 16px;
}
.toggle-card:hover { border-color: var(--brand-blue); box-shadow: 0 4px 12px rgba(37,99,235,0.05); }
.toggle-card.selected { border-color: var(--brand-blue); background: #eff6ff; box-shadow: 0 0 0 1px var(--brand-blue); }
.toggle-card input[type="checkbox"] { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--brand-blue); }
.toggle-card strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.toggle-card span { font-size: 0.9rem; color: var(--text-secondary); }

/* --- PANELS & CARDS --- */
.dashboard-split { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.panel-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }

/* Status Badges */
.status-badge { padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.status-success { background: var(--success-bg); color: var(--success); }
.status-warning { background: var(--warning-bg); color: var(--warning); }