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

:root {
    --bg: #0b1220;
    --bg-soft: #111827;
    --panel: #ffffff;
    --panel-soft: #f3f6fb;
    --border: #e5e7eb;
    --text: #162033;
    --muted: #6b7280;
    --primary: #ff7a00;
    --primary-hover: #e86f00;
    --white: #ffffff;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text);
    background: #eef3f8;
    line-height: 1.5;
}

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

button,
input {
    font: inherit;
}

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 0, 0.15), transparent 30%),
        linear-gradient(135deg, #0b1220, #162138);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-box {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.brand {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.login-box h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.muted {
    color: var(--muted);
}

.alert {
    margin-top: 18px;
    margin-bottom: 6px;
    background: #fff2f2;
    color: #b42318;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 12px 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.login-form label {
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    outline: none;
}

input:focus {
    border-color: rgba(255, 122, 0, 0.65);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bg);
    color: var(--white);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-brand {
    font-size: 28px;
    font-weight: 800;
}

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

.sidebar-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.content {
    padding: 32px;
}

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

.topbar h1 {
    font-size: 34px;
    margin-bottom: 4px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cargo-card,
.detail-card,
.empty-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.cargo-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.cargo-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cargo-card h2 {
    font-size: 24px;
}

.status-badge {
    align-self: flex-start;
    background: #fff3e8;
    color: #b45309;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.cargo-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.meta-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.2fr;
    gap: 20px;
}

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

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-list div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.info-list span {
    color: var(--muted);
    font-size: 13px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 6px;
}

.timeline-content {
    border-left: 2px solid #fde6d2;
    padding-left: 14px;
    padding-bottom: 8px;
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.timeline-head span,
.timeline-location {
    color: var(--muted);
    font-size: 14px;
}

.timeline-content p {
    margin-top: 6px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.back-link {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--muted);
}

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

    .sidebar {
        padding: 20px;
    }

    .cards-grid,
    .detail-grid,
    .cargo-meta {
        grid-template-columns: 1fr;
    }
}