        :root {
            --primary-color: #2196f3;
            --primary-light: #f8faff;
            --secondary-color: #1e86da;
            --bg-color: #f5f6f8fc;
            --card-bg: #ffffff;
            --text-dark: #2a3540fc;
            --text-muted: #6c757d;
            --border-color: #e9ecef;
            --success: #2ecc71;
            --warning: #ffc107;
            --danger: #dc3545;
            --info: #0dcaf0;
            --radius: 8px;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-dark);
            -webkit-text-size-adjust: 100%;
            -webkit-tap-highlight-color: transparent;
        }

        .container-custom {
            max-width: 1340px;
            margin: 60px auto;
            padding: 0 15px;
        }

        .box-content {
            background-color: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(0, 0, 0, 0.04);
        }

        .section-title {
            margin-bottom: 30px;
            border-bottom: 1px solid #E1E8EE;
            padding-bottom: 20px;
        }

        .section-title h1, .section-title h2 {
            font-size: 21px;
            font-weight: 500;
            color: var(--text-dark);
            margin-bottom: 10px;
        }

        .section-title p {
            font-size: 14px;
            color: var(--text-muted);
            max-width: 860px;
            margin: 14px 0px 0px 0px;
            line-height: 1.5;
        }

        .main-wrapper {
            display: flex;
            gap: 20px;
            height: 750px;
            margin-bottom: 40px;
        }

        .info-panel {
            flex: 0 0 420px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .map-panel {
            flex-grow: 1;
            position: relative;
            overflow: hidden;
        }

        .card-header-custom {
            background: #fff;
            border-bottom: 1px solid var(--border-color);
            padding: 20px 25px;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .search-area {
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
            background: #fff;
        }

        .search-input-group {
            position: relative;
        }

        .search-input-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ced4da8f;
            border-radius: 4px;
            font-size: 13px;
            color: #495057;
            background: #fff;
            transition: all 0.2s;
            outline: none;
        }

        .search-input-group input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 1px #bee3f8;
        }

        .search-input-group input::placeholder {
            color: #b1b9c1;
            opacity: 0.9;
        }

        .search-input-group button {
            position: absolute;
            right: 5px;
            top: 5px;
            bottom: 5px;
            border-radius: 4px;
            background: var(--text-muted);
            border: none;
            color: white;
            padding: 0 20px;
            transition: background-color 0.2s;
        }
        
        .search-input-group button:hover, .search-input-group button:not([disabled]) {
            background: var(--primary-color);
        }

        .shipment-header {
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
            background: #fff;
        }

        .shipment-id {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary-color);
        }

        .carrier-name {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .status-badge {
            font-size: 11px;
            padding: 6px 12px;
            border-radius: 4px;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .bg-light-success { background: #e8fff3; color: var(--success); }
        .bg-light-warning { background: #fff4de; color: var(--warning); }
        .bg-light-danger { background: #ffe2e5; color: var(--danger); }
        .bg-light-primary { background: #e1f0ff96; color: var(--primary-color); }
        .bg-light-secondary { background: #f5f8fa; color: #a1a5b7; }
        .bg-light-info { background: #e6f6ff; color: var(--info); }

        .route-summary {
            background: #fbfbfc;
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
        }

        .route-flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .route-point {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-dark);
        }

        .route-sub {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .route-date {
            font-size: 11px;
            font-weight: 500;
            color: var(--primary-color);
            margin-top: 6px;
        }

        .route-arrow {
            color: #b1b9c1;
            font-size: 16px;
        }

        .progress {
            height: 6px;
            background-color: #e9ecef;
            border-radius: 4px;
            margin-bottom: 8px;
            overflow: hidden;
        }

        .progress-bar {
            background: var(--primary-color);
            height: 100%;
            transition: width 0.6s ease;
        }

        .progress-stats {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .panel-tabs {
            padding: 15px 25px 0 25px;
            background: #fff;
            border-bottom: 1px solid var(--border-color);
        }

        .nav-pills .nav-link {
            font-size: 13px;
            font-weight: 400;
            color: var(--text-muted);
            background: transparent;
            border: 1px solid transparent;
            padding: 10px 15px;
            border-radius: 4px 4px 0 0;
            margin-right: 5px;
            border-bottom: 2px solid transparent;
        }

        .nav-pills .nav-link.active {
            background: transparent;
            color: var(--primary-color);
            border-bottom: 2px solid var(--primary-color);
        }

        .nav-pills .nav-link i {
            margin-right: 8px;
        }

        .panel-scroll-content {
            flex-grow: 1;
            overflow-y: auto;
            padding: 25px;
            background: #fff;
        }

        .timeline-custom {
            list-style: none;
            padding: 0;
            margin: 0;
            position: relative;
        }

        .timeline-custom::before {
            content: '';
            position: absolute;
            left: 14px;
            top: 34px;
            bottom: 0;
            width: 2px;
            background: #e9ecef;
            z-index: 0;
            max-height: 82%;
        }

        .timeline-group {
            margin-bottom: 25px;
            position: relative;
            z-index: 1;
        }

        .location-header {
            font-size: 12px;
            font-weight: 600;
            color: var(--primary-color);
            background: #fff;
            display: inline-block;
            padding-right: 10px;
            margin-bottom: 15px;
            margin-left: 35px;
        }

        .timeline-item {
            position: relative;
            padding-left: 50px;
            margin-bottom: 18px;
        }

        .timeline-icon {
            position: absolute;
            left: 0;
            top: 0;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #adb5bd;
            z-index: 2;
            transition: all 0.3s;
        }

        .timeline-item.completed .timeline-icon {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .timeline-item.is-current .timeline-icon {
            background: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px #bee3f8;
        }

        .event-desc { font-size: 13px; font-weight: 500; color: var(--text-dark); }
        .event-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
        .event-date { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

        #map { width: 100%; height: 100%; z-index: 1; border-radius: var(--radius); }
        .leaflet-control-attribution.leaflet-control { display: none !important; }

        .map-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(4px);
            z-index: 5;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            transition: opacity 0.4s ease;
        }

        .map-overlay i { font-size: 40px; margin-bottom: 15px; }
        .map-overlay h4 { font-size: 18px; font-weight: 600; color: var(--text-dark); }
        .map-overlay p { font-size: 13px; color: var(--text-muted); }

        .map-legend {
            position: absolute;
            bottom: 20px;
            right: 20px;
            z-index: 4;
            background: #fff;
            padding: 15px 20px;
            border-radius: 6px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            font-size: 12px;
            border: 1px solid var(--border-color);
        }

        .legend-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text-muted); }
        .legend-item:last-child { margin-bottom: 0; }
        .legend-color { width: 12px; height: 12px; border-radius: 2px; }

        .seo-wrapper {
            background-color: #ffffff;
            width: 100%;
            border-top: 1px solid rgba(0, 0, 0, 0.04);
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
            margin-bottom: 60px;
        }

        .seo-section {
            padding: 40px 15px;
            color: #5c7489;
            font-size: 14px;
            line-height: 1.6;
        }

        .seo-section h2 {
            color: var(--primary-color);
            font-size: 15px;
            font-weight: 400;
            margin-top: 35px;
            margin-bottom: 15px;
        }

        .seo-section h2:first-child { margin-top: 0; }
        .seo-section p { margin-bottom: 18px; }

        .step-cards-container {
            display: flex;
            gap: 20px;
            margin-bottom: 60px;
        }

        .step-card-box {
            flex: 1;
            background: #ffffff;
            border-radius: var(--radius);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(0, 0, 0, 0.04);
            padding: 30px 20px;
            text-align: center;
            transition: all 0.3s;
        }

        .step-card-box:hover {
            box-shadow: 0 8px 25px rgba(0,0,0,0.06);
            transform: translateY(-5px);
            border-color: #bee3f8;
        }

        .step-icon-box {
            width: 60px;
            height: 60px;
            background: #f8faff;
            color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin: 0 auto 20px auto;
        }

        .step-card-box h5 { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 12px; }
        .step-card-box p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }

        .accordion-item {
            border: 1px solid var(--border-color);
            border-radius: var(--radius) !important;
            overflow: hidden;
            margin-bottom: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
        }

        .accordion-button {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            background: #ffffff;
            box-shadow: none !important;
            padding: 18px 25px;
        }

        .accordion-button:not(.collapsed) {
            color: var(--primary-color);
            background: #f8faff;
        }

        .accordion-body {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.6;
            background: #ffffff;
            padding: 0 25px 25px 25px;
        }

        .loading-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(255, 255, 255, 0.8); display: none; justify-content: center;
            align-items: center; z-index: 9999; backdrop-filter: blur(4px);
        }

        .pulsating-marker {
            width: 18px; height: 18px; border-radius: 50%;
            background: var(--primary-color); border: 2px solid #fff;
            box-shadow: 0 0 0 rgba(33, 150, 243, 0.4);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(33, 150, 243, 0); }
            100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
        }

        .map-icon {
            background: #fff; border: 2px solid var(--danger); border-radius: 50%;
            width: 10px !important; height: 10px !important;
        }

        .limit-modal-content {
            border: none;
            border-radius: var(--radius);
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        }

        .limit-modal-body {
            font-size: 14px;
            color: var(--text-dark);
            line-height: 1.6;
        }

        @media (max-width: 992px) {
            .main-wrapper { flex-direction: column; height: auto; }
            .info-panel { flex: none; width: 100%; margin-bottom: 20px; }
            .map-panel { height: 450px; }
            .panel-scroll-content { max-height: 400px; }
            .step-cards-container { flex-wrap: wrap; }
            .step-card-box { flex: 1 1 100%; }
        }

        @media (max-width: 576px) {
            .container-custom { margin: 20px auto; }
            .section-title h1, .section-title h2 { font-size: 18px; }
            .section-title p { font-size: 12px; }
            .seo-section { padding: 25px 15px; }
            .limit-modal-body { font-size: 13px; }
        }
