/* =========================
   BASE
========================= */

body {
    margin: 0;
    background: #f4f6f9;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #344054;
}

.page-container {
    max-width: 1700px;
    margin: auto;
    padding: 12px;
}

/* =========================
   TOP BAR
========================= */

.topbar {
    height: 70px;
    background: white;
    border-radius: 16px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.topbar-right {
    display: flex;
    gap: 10px;
}

.logo {
    height: 40px;
}

/* =========================
   NAV
========================= */

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    color: #475467;
}

.nav a:hover {
    color: #d71920;
}

.nav a.active {
    font-weight: 700;
    border-bottom: 2px solid #000;
}

/* =========================
   BUTTONS
========================= */

.btn-primary {
    background: #1769ff;
    color: white;
    border: none;
    border-radius: 12px;
    height: 42px;
    padding: 0 18px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0056db;
}

.btn-secondary {
    background: white;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    height: 42px;
    padding: 0 16px;
    cursor: pointer;
}

/* =========================
   PAGE HEADER
========================= */

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #101828;
}

/* =========================
   SEARCH
========================= */

.controls {
    display: flex;
    gap: 10px;
}

.search-box {
    width: 260px;
    height: 36px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 10px;
}

/* =========================
   TABLES
========================= */

.table-card {
    background: white;
    border-radius: 14px;
    padding: 10px;
}

table.dataTable tbody tr:hover {
    background: #d0e4ff;
}

table.dataTable tbody td {
    padding: 4px 8px !important;
}

table.dataTable tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* =========================
   LABEL EVENTS
========================= */

.label-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    font-weight: 600;
    cursor: pointer;
    background: #f9fafb;
    border-bottom: 1px solid #e4e7ec;
}

.label-header:hover {
    background: #f2f4f7;
}

.label-content {
    display: none;
    padding: 10px;
}

/* =========================
   JOURNEY
========================= */

.journey-container {
    width: 100%;
    padding: 0 10px;
}

.steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.step {
    width: 16%;
}

.step.current .label {
    color: #d92d20;
}

.step.done:last-child .label {
    color: #16a34a;
}

/* icons */

.icon img {
    width: 60px;
    display: block;
    margin: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}

.step img {
    filter: grayscale(100%);
    opacity: 0.35;
}

.step.done img {
    filter: none;
    opacity: 1;
}

.step.current img {
    transform: scale(1.1);
    opacity: 1;
}

/* labels */

.label {
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.time {
    font-size: 12px;
    color: #667085;
    margin-top: 6px;
}

/* progress bar */

.journey-bar {
    position: relative;
    height: 60px;
}

.bar-bg {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 6px;
    background: #e4e7ec;
    border-radius: 6px;
}

.bar-fill {
    position: absolute;
    top: 30px;
    left: 0;
    height: 6px;
    background: #d92d20;
    border-radius: 6px;
}

/* dots */

.dot {
    position: absolute;
    top: 22px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d0d5dd;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.dot.done {
    background: #d92d20;
    color: #fff;
    border-color: #d92d20;
}

.dot.current {
    border: 3px solid #d92d20;
}

/* truck */

.truck {
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    transition: left 1.5s ease;
    z-index: 5;
    animation: drive 0.6s infinite alternate;
}

.truck.final {
    animation: none;
}

.truck img {
    width: 120px;
}

@keyframes drive {
    0% { transform: translateX(calc(-50% - 30px)); }
    100% { transform: translateX(calc(-50% - 30px)) translateY(-3px); }
}
