/*
Theme Name: zchtrans
Author: zchtrans
Description: N/A
Version: 2.3
Tags: N/A
*/

:root {
    --sf-red: #c4001a;
    /* đỏ SF */
    --sf-red-dark: #9f0015;
    /* hover */
    --sf-gray: #6c757d;
    /* text phụ */
    --sf-light: #f5f5f5;
    /* nền */
    --sf-border: #e0e0e0;
    /* viền */
    --sf-white: #ffffff;
}

body {
    background: url("images/solution_bg2.webp") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(245, 245, 245, 0.95);
    z-index: -1;
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* Header nổi trên background */
.navbar {
    background: var(--sf-red-dark) !important;
    border-bottom: 2px solid var(--sf-red);
}

.navbar-brand {
    font-weight: 600;
    color: var(--sf-red) !important;
}

.navbar-brand img {
    height: 32px;
}


/* Card nổi rõ */
.card {
    border: none;
    border-radius: 8px;
}

body::before {
    background: rgba(0, 0, 0, 0.45);
}

.card {
    background: #fff;
}

.btn-primary {
    background-color: var(--sf-red);
    border-color: var(--sf-red);
}

.btn-primary:hover {
    background-color: var(--sf-red-dark);
    border-color: var(--sf-red-dark);
}

.form-control {
    border-radius: 4px;
    border-color: var(--sf-border);
}

.form-control:focus {
    border-color: var(--sf-red);
    box-shadow: 0 0 0 0.1rem rgba(196, 0, 26, 0.15);
}

.card {
    border-radius: 6px;
    border: 1px solid var(--sf-border);
    box-shadow: none;
    background: var(--sf-white);
}

.list-group-item {
    border: none;
    border-left: 3px solid var(--sf-border);
    padding-left: 1rem;
}

.list-group-item .badge {
    background: var(--sf-border);
}

.list-group-item.active,
.list-group-item.active .badge {
    background: none;
    color: var(--sf-red);
    border-color: var(--sf-red);
}

.modal-content {
    border-radius: 6px;
    border-top: 4px solid var(--sf-red);
}

.modal-title {
    color: var(--sf-red);
    font-weight: 600;
}

@media (max-width: 576px) {
    .navbar-brand span {
        display: none;
    }
}


/* ===== SF TIMELINE ===== */
.sf-timeline {
    position: relative;
    padding-left: 28px;
}

.sf-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sf-border);
}

.sf-item {
    position: relative;
    display: flex;
    margin-bottom: 24px;
}

.sf-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sf-border);
    position: absolute;
    left: -1px;
    top: 4px;
}

.sf-item.active .sf-dot {
    background: var(--sf-red);
}

.sf-content {
    margin-left: 24px;
}

.sf-status {
    font-weight: 600;
    color: #212529;
}

.sf-item.active .sf-status {
    color: var(--sf-red);
}

.sf-meta {
    font-size: 0.875rem;
    color: var(--sf-gray);
    margin-top: 2px;
}

.sf-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: 6px;
    padding: 12px 16px;
}

.sf-summary-item {
    text-align: center;
    padding: 0 24px;
}

.sf-summary-label {
    font-size: 0.75rem;
    color: var(--sf-gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sf-summary-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--sf-red);
    line-height: 1.2;
}

.sf-summary-value small {
    font-size: 0.8rem;
    color: var(--sf-gray);
    margin-left: 4px;
}

.sf-summary-divider {
    width: 1px;
    height: 32px;
    background: var(--sf-border);
}

/* Chinese text */
.sf-cn {
    font-weight: normal;
    color: var(--sf-gray);
    margin-left: 4px;
    font-size: 0.85em;
}

.sf-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 24px;
}

/* ICON */
.sf-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sf-light);
    border: 1px solid var(--sf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    flex-shrink: 0;
}

.sf-icon i {
    font-size: 16px;
    color: var(--sf-gray);
}

/* ACTIVE */
.sf-item.active .sf-icon {
    background: var(--sf-red);
    border-color: var(--sf-red);
}

.sf-item.active .sf-icon i {
    color: #fff;
}

#tracking-map {
    width: 100%;
    height: 420px;
    border-radius: 6px;
}

/* icon marker SF */
.sf-marker {
    background-color: var(--sf-red);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.sf-passed {
    background-color: var(--sf-red);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.sf-upcoming {
    background-color: #adb5bd;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}

@media (max-width: 991px) {
    #map-panel {
        margin-top: 16px;
    }

    #tracking-map {
        height: 300px;
    }
}

.sf-warehouse {
    background-color: #adb5bd;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.sf-truck {
    background-color: var(--sf-red);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.sf-ship {
    background-color: var(--sf-red);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: transform 0.2s linear;
}

html,
body {
    height: 100%;
    margin: 0;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 14px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
}