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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #020617;
    color: #ffffff;
    padding: 24px;
}

.d-none {
    display: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #7dd3fc;
    margin-bottom: 10px;
}

.title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
}

.subtitle {
    color: #cbd5e1;
    font-size: 18px;
    max-width: 760px;
    line-height: 1.6;
}

.summary-boxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
    min-width: 320px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(6px);
}

.summary-card.green {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.2);
}

.summary-label {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.summary-value {
    font-size: 36px;
    font-weight: 700;
}

.stage-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stage-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.stage-card .label {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.stage-card .value {
    font-size: 34px;
    font-weight: 700;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr;
    gap: 24px;
}

.panel {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.panel-header {
    padding: 24px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.panel-header h2 {
    font-size: 30px;
    margin-bottom: 6px;
}

.panel-header p {
    color: #94a3b8;
    font-size: 14px;
}

.update-badge {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #bae6fd;
    font-size: 14px;
    white-space: nowrap;
}

.vehicle-item {
    padding: 24px;
    border-bottom: 1px solid #1e293b;
}

.vehicle-item:last-child {
    border-bottom: none;
}

.vehicle-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.vehicle-main {
    flex: 1;
    min-width: 280px;
}

.vehicle-top {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 12px;
}

.plate-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plate-group .plate-layer{
    display: flex;
    gap: 6px;
}

.plate {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.vehicle-meta {
    font-size: 14px;
    color: #64748b;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge.badge-mobile {
    display: none;
}

.badge.badge-desktop {
    display: block;
}

.badge.checkin {
    color: #E2E8F0;
    border: 2px solid #475569;
}

.badge.in-working {
    color: #EFF6FF;
    border: 2px solid #3B82F6;
}

.badge.test-drive {
    color: #F5F3FF;
    border: 2px solid #8B5CF6;
}

.badge.washing {
    color: #ECFEFF;
    border: 2px solid #14B8A6;
}

.badge.finalization {
    color: #FFF7ED;
    border: 2px solid #F59E0B;
}

.badge.finish {
    color: #F0FDF4;
    border: 2px solid #22C55E;
}

.vehicle-info {
    gap: 10px 18px;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.vehicle-info span {
    color: #64748b;
}

.progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
    gap: 10px;
}

.progress-head .status {
    color: #cbd5e1;
}

.progress-head .percent {
    color: #94a3b8;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #34d399);
}

.note-box {
    width: 280px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 18px;
}

.note-title {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}

.note-text {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
}

.note-box label.date {
    color: #B2BEB5;
    font-weight: 600;
    font-size: 14px;
}

.note-box h2.times {
    font-size: 28px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 18px;
}

.step-list,
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item,
.feature-item {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 18px;
    padding: 16px;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
}

.feature-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(16, 185, 129, 0.14));
    border-color: rgba(56, 189, 248, 0.15);
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;       /* Warna dasar (putih/abu) */
    border-bottom-color: #007bff; /* Warna spinner yang berputar (biru) */
    border-radius: 50%;           /* Membuat kotak jadi lingkaran */
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite; /* Menjalankan animasi */
}

/* Definisi Animasi */
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .stage-grid {
    grid-template-columns: repeat(3, 1fr);
    }

    .main-grid {
    grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
    padding: 16px;
    }

    .title {
    font-size: 34px;
    }

    .stage-grid {
    grid-template-columns: repeat(2, 1fr);
    }

    .vehicle-info {
    grid-template-columns: 1fr;
    }

    .note-box {
    width: 100%;
    }

    .panel-header h2 {
    font-size: 24px;
    }
}

@media (max-width: 520px) {
    .stage-grid,
    .summary-boxes {
    grid-template-columns: 1fr;
    }

    .title {
    font-size: 28px;
    }

    .plate {
    font-size: 24px;
    }

    .vehicle-top {
        flex-direction: column;
    }

    .badge {
        width: 100%;
        text-align: center;
    }

    .badge.badge-mobile {
        display: block;
    }

    .badge.badge-desktop {
        display: none;
    }

    .plate-group {
        width: 100%;
        align-items: center;
    }

    .note-box { 
        text-align: center;
    }
}