body {
    background-color: #f8f9fa;
}

/* Track Container */
.track-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 50vh;
}

/* Breadcrumb */
.tracking-breadcrumb {
    padding: 15px 0px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.tracking-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.tracking-breadcrumb a:hover {
    color: #2e4053;
}

.tracking-breadcrumb span {
    color: #212121;
    font-weight: 500;
}

/* Header Section */
.track-header {
    text-align: center;
    margin-bottom: 30px;
}

.track-title {
    font-size: 28px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 6px;
}

.track-subtitle {
    font-size: 14px;
    color: #666;
}

/* Search Form */
.track-search-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.track-search-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.track-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
    display: block;
}

.track-form-input {
    width: 100%;
    padding: 11px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #212121;
    outline: none;
    transition: all 0.3s;
}

.track-form-input:focus {
    border-color: #2e4053;
    box-shadow: 0 0 0 3px rgba(46, 64, 83, 0.08);
}

.track-form-input::placeholder {
    color: #999;
}

.track-search-btn {
    padding: 11px 28px;
    background: #2e4053;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: end;
    white-space: nowrap;
}

.track-search-btn:hover {
    background: #1a2733;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46, 64, 83, 0.2);
}

/* Alert Messages */
.track-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.track-alert-error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.track-alert-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Order Summary Card */
.track-order-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.track-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.track-order-id {
    font-size: 20px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 4px;
}

.track-order-barcode {
    font-size: 13px;
    color: #666;
}

.track-status-badge {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.track-status-pending {
    background: #fff8e1;
    color: #f57c00;
}

.track-status-confirmed {
    background: #e3f2fd;
    color: #1976d2;
}

.track-status-shipped {
    background: #e8eaf6;
    color: #5e35b1;
}

.track-status-delivered {
    background: #e8f5e9;
    color: #388e3c;
}

.track-status-cancelled {
    background: #ffebee;
    color: #d32f2f;
}

.track-order-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.track-info-item {
    display: flex;
    flex-direction: column;
}

.track-info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.track-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
}

/* Timeline */
.track-timeline-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.track-timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 20px;
}

.track-timeline {
    position: relative;
}

.track-timeline-line {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.track-timeline-items {
    position: relative;
}

.track-timeline-item {
    position: relative;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.track-timeline-item:last-child {
    margin-bottom: 0;
}

.track-timeline-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.track-timeline-icon.confirmed {
    background: #1976d2;
}

.track-timeline-icon.processed {
    background: #5e35b1;
}

.track-timeline-icon.shipped {
    background: #5e35b1;
}

.track-timeline-icon.transit {
    background: #f57c00;
}

.track-timeline-icon.delivered {
    background: #388e3c;
}

.track-timeline-icon.cancelled {
    background: #d32f2f;
}

.track-timeline-icon.current {
    background: #ff6f00;
    animation: pulse 2s infinite;
}

.track-timeline-icon.pending {
    background: #e0e0e0;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 111, 0, 0);
    }
}

.track-timeline-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.track-timeline-content {
    flex: 1;
    padding-top: 2px;
}

.track-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.track-timeline-event-title {
    font-size: 15px;
    font-weight: 600;
    color: #212121;
}

.track-timeline-date {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.track-timeline-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
    line-height: 1.5;
}

.track-timeline-location {
    font-size: 12px;
    color: #999;
}

/* Order Details */
.track-details-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.track-details-title {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 20px;
}

.track-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.track-address-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.track-address-content {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.track-items-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.track-order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.track-order-item:last-of-type {
    border-bottom: none;
}

.track-item-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 4px;
}

.track-item-meta {
    font-size: 12px;
    color: #666;
}

.track-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    white-space: nowrap;
}

.track-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 0px solid #e0e0e0;
}

.track-order-total-label {
    font-size: 15px;
    font-weight: 600;
    color: #212121;
}

.track-order-total-value {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
}

/* Empty State */
.track-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.track-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.track-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.track-empty-text {
    font-size: 14px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .track-container {
        padding: 15px;
    }

    .track-title {
        font-size: 24px;
    }

    .track-search-grid {
        grid-template-columns: 1fr;
    }

    .track-search-btn {
        width: 100%;
    }

    .track-order-header {
        flex-direction: column;
        gap: 12px;
    }

    .track-order-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .track-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .track-timeline-date {
        font-size: 11px;
    }

    .track-order-item {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .track-timeline-event-title {
        font-size: 14px;
    }

    .track-timeline-description {
        font-size: 12px;
    }
}