/* Universal Goods Tracking System Styles */
.universal-tracking-system-wrapper {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
}

.uts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.uts-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.uts-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.uts-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 15px;
}

.uts-api-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.uts-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.uts-tracking-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.uts-tracking-section {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uts-tracking-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.uts-section-header {
    padding: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.uts-air-tracking .uts-section-header {
    background: linear-gradient(to right, #11998e, #38ef7d);
}

.uts-sea-tracking .uts-section-header {
    background: linear-gradient(to right, #0052D4, #4364F7, #6FB1FC);
}

.uts-section-header i {
    font-size: 2.2rem;
}

.uts-section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.uts-tracking-content {
    padding: 30px;
}

.uts-carrier-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.uts-carrier-btn {
    padding: 10px 20px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.uts-carrier-btn:hover {
    background: #e2e8f0;
}

.uts-carrier-btn.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.uts-tracking-input {
    display: flex;
    margin-bottom: 20px;
}

.uts-tracking-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.uts-tracking-input input:focus {
    outline: none;
    border-color: #4f46e5;
}

.uts-track-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uts-track-btn:hover {
    background: #4338ca;
}

.uts-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.uts-loading.active {
    display: block;
}

.uts-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: uts-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes uts-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.uts-error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.uts-error-message.active {
    display: block;
}

.uts-tracking-result {
    background: #f8fafc;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    display: none;
}

.uts-tracking-result.active {
    display: block;
    animation: uts-fadeIn 0.5s ease;
}

@keyframes uts-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.uts-tracking-id {
    font-weight: 600;
    color: #4f46e5;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uts-tracking-id .uts-carrier-badge {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.uts-status-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    margin: 25px 0;
    overflow: hidden;
}

.uts-status-progress {
    height: 100%;
    border-radius: 5px;
    transition: width 1.5s ease;
}

.uts-air-tracking .uts-status-progress {
    background: linear-gradient(to right, #11998e, #38ef7d);
}

.uts-sea-tracking .uts-status-progress {
    background: linear-gradient(to right, #0052D4, #4364F7);
}

.uts-status-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    position: relative;
}

.uts-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    flex: 1;
    min-width: 70px;
}

.uts-status-step:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.uts-step-icon {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    z-index: 2;
    color: #94a3b8;
}

.uts-status-step.active .uts-step-icon {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.uts-status-step.completed .uts-step-icon {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.uts-step-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.3;
}

.uts-status-step.active .uts-step-label {
    color: #4f46e5;
}

.uts-status-step.completed .uts-step-label {
    color: #10b981;
}

.uts-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.uts-detail-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.uts-detail-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 600;
}

.uts-detail-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.uts-instructions {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.uts-instructions h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    color: #1e293b;
}

.uts-instructions ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.uts-instructions li {
    margin-bottom: 8px;
}

.uts-sample-codes {
    margin-top: 20px;
}

.uts-code-samples {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.uts-code-sample {
    background: #f1f5f9;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
}

.uts-footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

.uts-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #4f46e5;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.uts-events-timeline {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.uts-events-title {
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 15px;
    font-size: 1rem;
}

.uts-event-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.uts-event-item:last-child {
    border-bottom: none;
}

.uts-event-icon {
    width: 24px;
    height: 24px;
    background: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    flex-shrink: 0;
}

.uts-event-item.completed .uts-event-icon {
    background: #d1fae5;
    color: #10b981;
}

.uts-event-content {
    flex: 1;
}

.uts-event-status {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.uts-event-location {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 4px;
}

.uts-event-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .uts-tracking-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .uts-header h1 {
        font-size: 2.2rem;
    }
    
    .uts-section-header {
        padding: 20px;
    }
    
    .uts-tracking-content {
        padding: 20px;
    }
    
    .uts-details-grid {
        grid-template-columns: 1fr;
    }
    
    .uts-carrier-selector {
        flex-direction: column;
    }
    
    .uts-carrier-btn {
        width: 100%;
        text-align: center;
    }
    
    .uts-tracking-input {
        flex-direction: column;
    }
    
    .uts-tracking-input input {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .uts-track-btn {
        border-radius: 8px;
        padding: 15px;
        justify-content: center;
    }
    
    .uts-status-steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .uts-status-step:before {
        display: none;
    }
}