/* IMFODEX Tracking System Styles */

#trackingResult {
    display: none;
    margin: 3rem auto;
    max-width: 900px;
    padding: 0 20px;
}

.tracking-result {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tracking-header {
    background: linear-gradient(135deg, #FF5722 0%, #FF8A65 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.tracking-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.tracking-number {
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

.status-card {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.status-icon {
    font-size: 4rem;
    margin-right: 2rem;
}

.status-info {
    flex: 1;
}

.status-info h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: #333;
}

.status-info p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 1rem;
}

.current-location {
    font-size: 1.1rem !important;
    color: #333 !important;
}

.delivery-date {
    color: #FF5722 !important;
    font-weight: 600;
}

.last-update {
    font-size: 0.9rem !important;
    color: #999 !important;
}

/* Status Colors */
.status-delivered {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    color: white;
}

.status-delivered .status-info h3,
.status-delivered .status-info p {
    color: white !important;
}

.status-in-transit {
    background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%);
    color: white;
}

.status-in-transit .status-info h3,
.status-in-transit .status-info p {
    color: white !important;
}

.status-warehouse {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
}

.status-warehouse .status-info h3,
.status-warehouse .status-info p {
    color: white !important;
}

.status-ready {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
}

.status-ready .status-info h3,
.status-ready .status-info p {
    color: white !important;
}

.status-customs {
    background: linear-gradient(135deg, #607D8B 0%, #90A4AE 100%);
    color: white;
}

.status-customs .status-info h3,
.status-customs .status-info p {
    color: white !important;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: #f0f0f0;
    margin: 2rem;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF5722 0%, #FF8A65 100%);
    transition: width 1s ease;
}

.progress-label {
    text-align: center;
    color: #666;
    font-weight: 600;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* Route Info */
.route-info {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.route-point {
    text-align: center;
    flex: 1;
}

.route-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.route-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.route-arrow {
    font-size: 2rem;
    color: #FF5722;
    margin: 0 2rem;
}

/* Timeline */
.tracking-timeline {
    padding: 2rem;
}

.tracking-timeline h3 {
    margin: 0 0 2rem 0;
    font-size: 1.5rem;
    color: #333;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-event {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5722;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #FF5722;
}

.timeline-event:first-child .timeline-dot {
    background: #4CAF50;
    box-shadow: 0 0 0 2px #4CAF50;
}

.timeline-content {
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #FF5722;
}

.event-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.3rem;
}

.event-location {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.event-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FF5722;
    margin-bottom: 0.5rem;
}

.event-description {
    font-size: 0.95rem;
    color: #666;
}

/* Tracking Actions */
.tracking-actions {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: #f9f9f9;
    justify-content: center;
    flex-wrap: wrap;
}

.action-button {
    padding: 0.8rem 1.5rem;
    background: #FF5722;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.action-button:hover {
    background: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,87,34,0.3);
}

/* Error State */
.tracking-error {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.tracking-error h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.tracking-error p {
    color: #666;
    margin-bottom: 2rem;
}

.sample-numbers {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
}

.sample-numbers p {
    margin-bottom: 1rem;
    color: #333;
}

.sample-numbers ul {
    list-style: none;
    padding: 0;
}

.sample-numbers li {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
}

.sample-numbers code {
    background: #FF5722;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracking-header h2 {
        font-size: 1.5rem;
    }
    
    .tracking-number {
        font-size: 1rem;
    }
    
    .status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .status-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .route-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .route-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .tracking-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
}
