/* =============================================
   SIAPJASA - Main Stylesheet
   ============================================= */

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

:root {
    --primary: #1B4FD8;
    --primary-dark: #1540B0;
    --primary-light: #EEF2FF;
    --secondary: #F97316;
    --secondary-light: #FFF7ED;
    --success: #16A34A;
    --warning: #D97706;
    --danger: #DC2626;
    --dark: #0F172A;
    --gray-900: #1E293B;
    --gray-700: #334155;
    --gray-500: #64748B;
    --gray-300: #CBD5E1;
    --gray-100: #F1F5F9;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-900);
    background: var(--gray-100);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }

/* NAVBAR */
.navbar {
    background: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.logo span { color: var(--secondary); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--gray-700); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}
.btn-secondary:hover { background: #EA6B0F; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #3B6EF8 50%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 { font-size: 52px; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: #FCD34D; }
.hero p { font-size: 18px; opacity: 0.85; margin-bottom: 36px; line-height: 1.7; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.2); }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; }
.hero-stat span { font-size: 13px; opacity: 0.75; }

/* WAVE */
.wave-divider { display: block; line-height: 0; }

/* LAYANAN SECTION */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-header h2 { font-size: 38px; color: var(--dark); margin-bottom: 16px; }
.section-header p { color: var(--gray-500); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* CARDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all 0.25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.service-card { text-align: center; cursor: pointer; }
.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { color: var(--gray-500); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.service-price { color: var(--primary); font-weight: 700; font-size: 15px; }

/* MITRA CARD */
.mitra-card { display: flex; flex-direction: column; }
.mitra-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 3px solid var(--primary-light); }
.mitra-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; margin-bottom: 10px; }
.rating { color: var(--secondary); font-size: 13px; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.step { text-align: center; padding: 24px 16px; position: relative; }
.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), #3B6EF8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(27,79,216,0.4);
}

.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--gray-500); font-size: 14px; }

/* FORM */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--gray-700); }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    color: var(--dark);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,79,216,0.1); }
select.form-control { cursor: pointer; }

/* AUTH PAGE */
.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-left {
    background: linear-gradient(160deg, var(--primary) 0%, #3B6EF8 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.auth-left h2 { font-size: 38px; margin-bottom: 20px; line-height: 1.2; }
.auth-left p { opacity: 0.8; font-size: 16px; line-height: 1.8; }

.auth-features { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.auth-feature { display: flex; align-items: center; gap: 14px; }
.auth-feature-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.auth-feature-text strong { display: block; font-size: 14px; font-weight: 600; }
.auth-feature-text span { font-size: 13px; opacity: 0.7; }

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
}

.auth-box { width: 100%; max-width: 400px; }
.auth-box .logo { display: block; margin-bottom: 32px; font-size: 24px; }
.auth-box h3 { font-size: 26px; margin-bottom: 6px; }
.auth-box .subtitle { color: var(--gray-500); font-size: 15px; margin-bottom: 32px; }

.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--gray-500); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-300); }

.tabs { display: flex; background: var(--gray-100); border-radius: var(--radius); padding: 4px; margin-bottom: 28px; }
.tab { flex: 1; padding: 10px; text-align: center; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s; color: var(--gray-500); }
.tab.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }

/* DASHBOARD */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.sidebar {
    background: var(--dark);
    color: white;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

.sidebar-logo span { color: var(--secondary); }

.sidebar-user {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}
.sidebar-user img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); }
.sidebar-user-info strong { display: block; font-size: 14px; font-weight: 600; }
.sidebar-user-info span { font-size: 12px; opacity: 0.6; }

.sidebar-nav { padding: 16px 0; }
.sidebar-label { padding: 8px 24px; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-top: 8px; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    transition: all 0.2s;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: white; }
.sidebar-link.active { background: var(--primary); color: white; }
.sidebar-link .icon { width: 20px; text-align: center; font-size: 16px; }

.main-content { margin-left: 260px; padding: 32px; }

.page-header { margin-bottom: 32px; }
.page-header h2 { font-size: 26px; margin-bottom: 4px; }
.page-header p { color: var(--gray-500); font-size: 15px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--dark); font-family: 'Plus Jakarta Sans', sans-serif; }
.stat-card .stat-icon { font-size: 24px; float: right; margin-top: -4px; }

/* TABLE */
.table-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--gray-100); }
.table-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }
.table-header h4 { font-size: 16px; }

table { width: 100%; border-collapse: collapse; }
th { background: var(--gray-100); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); }
td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-100); }

/* BADGES */
.badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-success { background: #DCFCE7; color: var(--success); }
.badge-warning { background: #FEF9C3; color: var(--warning); }
.badge-danger { background: #FEE2E2; color: var(--danger); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }

/* ORDER FORM */
.order-wrapper { max-width: 800px; margin: 0 auto; }
.order-step-bar { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.order-step-bar::before { content: ''; position: absolute; top: 20px; left: 10%; right: 10%; height: 2px; background: var(--gray-300); z-index: 0; }
.order-step-item { text-align: center; position: relative; z-index: 1; }
.order-step-num { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; margin: 0 auto 8px; border: 2px solid var(--gray-300); background: var(--white); }
.order-step-item.active .order-step-num { background: var(--primary); color: white; border-color: var(--primary); }
.order-step-item.done .order-step-num { background: var(--success); color: white; border-color: var(--success); }
.order-step-label { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.order-step-item.active .order-step-label { color: var(--primary); font-weight: 600; }

/* ALERT */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.alert-danger { background: #FEE2E2; color: var(--danger); border: 1px solid #FECACA; }
.alert-success { background: #DCFCE7; color: var(--success); border: 1px solid #BBF7D0; }

/* FOOTER */
footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { display: block; margin-bottom: 16px; font-size: 22px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h5 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; cursor: pointer; }
.footer-col li:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .steps::before { display: none; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
}
