*{
    box-sizing:border-box;
}

:root{
    --bg:#f5f7fb;
    --text:#172033;
    --muted:#7b8498;
    --card:#ffffff;
    --line:#e8ecf3;
    --shadow:0 14px 35px rgba(31,45,61,.08);
}

body{
    margin:0;
    font-family:Inter,Segoe UI,Arial,sans-serif;
    background:
        radial-gradient(circle at top left, rgba(70,130,255,.12), transparent 28%),
        radial-gradient(circle at top right, rgba(146,84,255,.10), transparent 24%),
        var(--bg);
    color:var(--text);
    min-height:100vh;
}

.page-shell{
    width:min(1440px, calc(100% - 34px));
    margin:0 auto;
    padding:28px 0 42px;
}

.hero{
    position:relative;
    overflow:hidden;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:28px 30px;
    border-radius:24px;
    background:linear-gradient(135deg,#172554 0%,#2744a5 48%,#7c3aed 100%);
    color:white;
    box-shadow:0 18px 50px rgba(43,63,152,.28);
}

.hero::after{
    content:"";
    position:absolute;
    width:230px;
    height:230px;
    border-radius:50%;
    right:-55px;
    top:-100px;
    background:rgba(255,255,255,.10);
}

.eyebrow{
    font-size:12px;
    letter-spacing:1.7px;
    font-weight:800;
    opacity:.74;
    margin-bottom:8px;
}

.hero h1{
    margin:0;
    font-size:38px;
    line-height:1;
    letter-spacing:-1px;
}

.hero p{
    margin:9px 0 0;
    opacity:.82;
    font-size:14px;
}

.live-pill{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    gap:9px;
    padding:11px 15px;
    border-radius:999px;
    background:rgba(255,255,255,.13);
    border:1px solid rgba(255,255,255,.18);
    backdrop-filter:blur(8px);
    font-size:12px;
    font-weight:800;
    letter-spacing:.7px;
}

.live-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#42f59e;
    box-shadow:0 0 0 6px rgba(66,245,158,.12);
    animation:pulse 1.6s infinite;
}

@keyframes pulse{
    50%{box-shadow:0 0 0 10px rgba(66,245,158,0);}
}

.summary-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin:18px 0;
}

.summary-card{
    position:relative;
    overflow:hidden;
    min-height:112px;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:18px;
    padding:18px 20px;
    box-shadow:var(--shadow);
}

.summary-card::after{
    content:"";
    position:absolute;
    width:78px;
    height:78px;
    border-radius:24px;
    right:-15px;
    bottom:-22px;
    opacity:.15;
    transform:rotate(22deg);
}

.summary-card.total::after{background:#5b70ff;}
.summary-card.selesai::after{background:#18b875;}
.summary-card.proses::after{background:#2e86ff;}
.summary-card.gagal::after{background:#f05252;}

.summary-label{
    font-size:11px;
    font-weight:800;
    letter-spacing:1.1px;
    color:var(--muted);
}

.summary-value{
    margin-top:7px;
    font-size:36px;
    line-height:1;
    font-weight:850;
}

.summary-card.total .summary-value{color:#5064df;}
.summary-card.selesai .summary-value{color:#14a66b;}
.summary-card.proses .summary-value{color:#2479e8;}
.summary-card.gagal .summary-value{color:#e04949;}

.overall-card{
    background:white;
    border:1px solid var(--line);
    border-radius:18px;
    padding:20px 22px;
    box-shadow:var(--shadow);
}

.overall-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:14px;
}

.overall-title{
    font-size:16px;
    font-weight:800;
}

.overall-subtitle{
    font-size:12px;
    color:var(--muted);
    margin-top:4px;
}

.overall-percent{
    font-size:27px;
    font-weight:900;
    color:#4f46e5;
}

.overall-track{
    height:12px;
    background:#eef1f6;
    border-radius:999px;
    overflow:hidden;
}

.overall-bar{
    width:0;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#4f46e5,#2563eb,#06b6d4);
    transition:width .45s ease;
}

.section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin:25px 3px 13px;
}

.section-head h2{
    margin:0;
    font-size:20px;
}

.section-head p{
    margin:5px 0 0;
    font-size:12px;
    color:var(--muted);
}

.refresh-text{
    font-size:12px;
    color:var(--muted);
}

.jobs-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
}

.job-card{
    --accent:#64748b;
    --accent2:#94a3b8;
    position:relative;
    overflow:hidden;
    background:white;
    border:1px solid var(--line);
    border-radius:20px;
    padding:18px;
    min-height:195px;
    box-shadow:var(--shadow);
    transition:transform .2s ease, box-shadow .2s ease;
}

.job-card:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 42px rgba(31,45,61,.13);
}

.job-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:5px;
    background:linear-gradient(var(--accent),var(--accent2));
}

.job-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}

.project-no{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:13px;
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    color:white;
    font-weight:900;
    font-size:15px;
    box-shadow:0 8px 18px color-mix(in srgb, var(--accent) 25%, transparent);
}

.job-title-wrap{
    display:flex;
    gap:12px;
    min-width:0;
}

.job-name{
    font-size:15px;
    font-weight:800;
    line-height:1.35;
    margin-top:2px;
}

.job-code{
    margin-top:4px;
    color:var(--muted);
    font-size:11px;
    font-weight:700;
    letter-spacing:.5px;
}

.badge{
    flex:none;
    padding:7px 9px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
    letter-spacing:.4px;
    background:#eef1f5;
    color:#677085;
}

.badge.SELESAI{
    background:#dcfce7;
    color:#0f8c55;
}

.badge.PROSES{
    background:#dbeafe;
    color:#1d67cf;
}

.badge.GAGAL{
    background:#fee2e2;
    color:#c63737;
}

.job-progress-head{
    margin-top:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:11px;
    color:var(--muted);
}

.job-progress-value{
    color:var(--text);
    font-weight:800;
}

.job-track{
    margin-top:7px;
    height:8px;
    background:#edf0f4;
    border-radius:999px;
    overflow:hidden;
}

.job-bar{
    width:0;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,var(--accent),var(--accent2));
    transition:width .4s ease;
}

.job-meta{
    margin-top:14px;
    padding-top:13px;
    border-top:1px solid #eef1f5;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px 14px;
    font-size:11px;
}

.meta-label{
    display:block;
    color:var(--muted);
    margin-bottom:3px;
}

.meta-value{
    font-weight:700;
    color:#394357;
}

.message{
    margin-top:11px;
    padding:9px 10px;
    border-radius:10px;
    background:#f6f8fb;
    font-size:11px;
    color:#596273;
}

.error{
    margin-top:8px;
    padding:9px 10px;
    border-radius:10px;
    background:#fff1f2;
    color:#b42318;
    font-size:11px;
    white-space:pre-wrap;
}

.empty{
    grid-column:1/-1;
    background:white;
    border:1px solid var(--line);
    padding:30px;
    border-radius:18px;
    text-align:center;
    color:var(--muted);
}

@media(max-width:1050px){
    .summary-grid{grid-template-columns:repeat(2,1fr);}
    .jobs-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:700px){
    .page-shell{width:min(100% - 20px,1440px);padding-top:10px;}
    .hero{padding:22px;align-items:flex-start;}
    .hero h1{font-size:30px;}
    .live-pill{display:none;}
    .summary-grid{grid-template-columns:1fr 1fr;}
    .jobs-grid{grid-template-columns:1fr;}
    .section-head{align-items:flex-start;flex-direction:column;}
}

@media(max-width:430px){
    .summary-grid{grid-template-columns:1fr;}
}
