:root {
    --bg: #0c0e11;
    --card: #15181d;
    --card-2: #1b1f25;
    --border: #292e36;
    --text: #f5f6f7;
    --muted: #89919c;
    --accent: #e43d3d;
    --accent-dark: #a91f25;
}

body {
    background:
        radial-gradient(circle at top right, rgba(228,61,61,.08), transparent 35%),
        var(--bg);

    color: var(--text);

    min-height: 100vh;
}

.navbar {
    min-height: 70px;
}

.navbar-brand {
    letter-spacing: .04em;
}

.navbar-brand span {
    color: var(--accent);
}

.dashboard-container {
    max-width: 1600px;
    padding: 32px;
    margin: auto;
}

.vehicle-hero,
.dashboard-card,
.stat-card {
    background: rgba(21,24,29,.95);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.vehicle-hero {
    overflow: hidden;
}

.vehicle-image {
    height: 330px;
    background: #101216;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: var(--muted);

    gap: 12px;
}

.vehicle-placeholder i {
    font-size: 42px;
}

.vehicle-information {
    padding: 45px;
}

.vehicle-information h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin: 0;
}

.vehicle-information h2 {
    color: var(--muted);
    font-weight: 400;
}

.license-plate {
    background: #f4c900;
    color: #111;

    border-radius: 8px;
    border: 3px solid #111;

    display: inline-block;

    padding: 8px 22px;

    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 27px;

    letter-spacing: 3px;

    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.25),
        0 4px 15px rgba(0,0,0,.3);
}

.stat-card {
    padding: 25px;
    height: 100%;
}

.stat-icon {
    color: var(--accent);
    font-size: 23px;
    margin-bottom: 18px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
}

.stat-value span {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
}

.dashboard-card {
    padding: 28px;
}

.dashboard-card h3 {
    font-weight: 700;
    margin-bottom: 25px;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    margin-bottom: 5px;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-km {
    font-weight: 700;
    color: var(--muted);
}

.timeline-wrapper {
    overflow-x: auto;
    padding: 50px 20px 80px;
}

.timeline {
    height: 5px;
    background: #343941;
    min-width: 800px;
    position: relative;
    border-radius: 20px;
}

.timeline-progress {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;

    background: var(--accent);

    border-radius: 20px;
}

.milestone {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.milestone-dot {
    width: 15px;
    height: 15px;

    background: #343941;

    border: 3px solid var(--card);

    border-radius: 50%;
}

.milestone.completed .milestone-dot {
    background: var(--accent);
}

.milestone-km,
.milestone-name {
    position: absolute;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
}

.milestone-km {
    top: 20px;
    font-size: 12px;
    font-weight: 700;
}

.milestone-name {
    top: 39px;
    font-size: 11px;
    color: var(--muted);
}

.progress {
    background: #292e35;
    height: 9px;
}

.progress-bar {
    background: var(--accent);
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action {
    min-height: 110px;

    background: var(--card-2);

    border: 1px solid var(--border);
    border-radius: 12px;

    text-decoration: none;
    color: var(--text);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    transition: .15s ease;
}

.quick-action:hover {
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.quick-action i {
    font-size: 24px;
    color: var(--accent);
}

.quick-action span {
    font-size: 13px;
}

.chart-container {
    height: 300px;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border);
}

@media(max-width: 768px) {

    .dashboard-container {
        padding: 15px;
    }

    .vehicle-image {
        height: 230px;
    }

    .vehicle-information {
        padding: 25px;
    }

    .vehicle-information h1 {
        font-size: 29px;
    }

    .license-plate {
        font-size: 21px;
    }

    .dashboard-card {
        padding: 20px;
    }

}

.maintenance-item {
    height: 100%;
    padding: 20px;

    background: var(--card-2);

    border: 1px solid var(--border);
    border-left: 4px solid #555d68;

    border-radius: 12px;
}

.maintenance-item.soon {
    border-left-color: #ffc107;
}

.maintenance-item.due {
    border-left-color: #dc3545;
}

.maintenance-title {
    font-size: 16px;
    font-weight: 700;
}

.maintenance-distance strong {
    font-size: 22px;
}

.form-control,
.form-select,
.input-group-text {
    background-color: #101318;
    border-color: var(--border);
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    background-color: #101318;
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 .25rem rgba(228, 61, 61, .12);
}

.form-control::placeholder {
    color: #626a75;
}

.form-select {
    color-scheme: dark;
}

.input-group-text {
    color: var(--muted);
}

.form-text {
    color: var(--muted);
}