/* Enhanced Tracking Page Styles */

/* Tracking Header Card */
.tracking-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.tracking-id-badge {
    display: flex;
    flex-direction: column;
}

.tracking-id-badge .badge-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tracking-id-badge .badge-value {
    font-size: 28px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
}

.tracking-status-badge {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    padding: 15px 25px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.tracking-status-badge .status-icon {
    font-size: 24px;
    margin-right: 10px;
}

.tracking-status-badge .status-text {
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
}

/* Timeline Section */
.tracking-timeline-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.timeline-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.timeline-title .icon {
    font-size: 28px;
    margin-right: 15px;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: relative;
    margin-right: 30px;
    flex-shrink: 0;
}

.marker-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item.active .marker-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
}

.marker-line {
    width: 3px;
    height: 100%;
    background: #e9ecef;
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translateX(-50%);
    min-height: 50px;
}

.timeline-item.active .marker-line {
    background: linear-gradient(180deg, #667eea 0%, #e9ecef 100%);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6); }
}

.timeline-content {
    flex: 1;
}

.content-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border-left: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.timeline-item.active .content-card {
    border-left-color: #667eea;
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.1);
}

.content-card:hover {
    transform: translateX(5px);
}

.card-header {
    background: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.status-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-badge {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.card-body {
    padding: 20px;
}

.location {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.location-icon {
    font-size: 18px;
    margin-right: 10px;
}

.location-text {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.note-text {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
}

.note-icon {
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}

.date-text {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6c757d;
}

.date-icon {
    margin-right: 8px;
}

/* Barcode Card */
.barcode-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.barcode-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.company-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.barcode-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.barcode-body {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
}

.barcode-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.barcode-number {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    letter-spacing: 2px;
    margin: 0;
}

/* Parties Container (Sender & Receiver) */
.parties-container {
    margin-bottom: 30px;
}

.party-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.party-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.party-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    align-items: center;
}

.party-icon {
    font-size: 28px;
    margin-right: 15px;
}

.party-header h5 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.party-body {
    padding: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-value {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

/* Shipment Details Card */
.shipment-details-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.shipment-status-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-icon {
    font-size: 32px;
    margin-right: 15px;
}

.banner-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.package-image-section {
    padding: 40px;
    background: #f8f9fa;
    text-align: center;
}

.image-wrapper {
    display: inline-block;
    padding: 15px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.package-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 10px;
}

.shipment-info-grid {
    padding: 40px;
}

.info-group {
    height: 100%;
}

.info-group-item {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.info-group-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.info-group-item:last-child {
    margin-bottom: 0;
}

.item-icon {
    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
}

.item-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-label {
    font-size: 12px;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 700;
}

.item-value {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.status-highlight {
    color: #667eea;
    font-size: 16px;
}

/* Google Maps Container */
.google-maps-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.google-maps-container .map {
    border-radius: 10px;
    overflow: hidden;
}

/* Print Receipt Container */
.print-receipt-container {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-bottom: 30px;
}

.print-receipt-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.print-receipt-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracking-header-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .tracking-id-badge {
        margin-bottom: 15px;
    }
    
    .tracking-id-badge .badge-value {
        font-size: 22px;
    }
    
    .tracking-timeline-section {
        padding: 25px 20px;
    }
    
    .timeline-title {
        font-size: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-marker {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .marker-line {
        display: none;
    }
    
    .barcode-card,
    .parties-container,
    .shipment-details-card {
        padding: 25px;
    }
    
    .shipment-status-banner {
        flex-direction: column;
        padding: 20px;
    }
    
    .banner-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .banner-text {
        font-size: 18px;
    }
    
    .package-image-section {
        padding: 25px;
    }
    
    .shipment-info-grid {
        padding: 25px;
    }
    
    .info-group-item:hover {
        transform: translateX(0);
    }
}
