/* Elementor Widget Styles */
.ist-elementor-widget {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.ist-elementor-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 2rem;
    text-align: center;
    color: white;
}

.ist-elementor-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.ist-elementor-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.ist-elementor-form {
    padding: 2rem;
    background: white;
}

.ist-elementor-input-group {
    display: flex;
    gap: 12px;
}

.ist-elementor-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ist-elementor-input:focus {
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.ist-elementor-button {
    padding: 14px 28px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    white-space: nowrap;
}

.ist-elementor-button:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.ist-elementor-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ist-elementor-result {
    background: white;
}

/* Result Components */
.ist-elementor-tracking-number {
    background: #1e293b;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin: 1rem 2rem;
}

.ist-elementor-card {
    margin: 0 2rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.ist-elementor-card h4 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.ist-elementor-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ist-elementor-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ist-elementor-info-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ist-elementor-info-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
}

.ist-elementor-current-status {
    margin: 0 2rem 1.5rem;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.ist-elementor-current-status h4 {
    margin: 0 0 0.5rem 0;
    color: #166534;
    font-size: 1.1rem;
    font-weight: 600;
}

.ist-elementor-status-message {
    font-size: 1.2rem;
    color: #166534;
    font-weight: 700;
    margin: 0;
}

/* Timeline Styles */
.ist-elementor-timeline-section {
    margin: 0 2rem 2rem;
}

.ist-elementor-timeline-section h4 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.ist-elementor-timeline {
    position: relative;
    padding-left: 2rem;
}

.ist-elementor-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.ist-elementor-timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #d1d5db;
    transition: all 0.3s ease;
}

.ist-elementor-timeline-item:last-child {
    margin-bottom: 0;
}

.ist-elementor-timeline-item.active {
    border-left-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.ist-elementor-timeline-item.completed {
    border-left-color: #2563eb;
}

.ist-elementor-timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d1d5db;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #d1d5db;
    z-index: 2;
}

.ist-elementor-timeline-item.active::before {
    background: #059669;
    box-shadow: 0 0 0 2px #059669;
    animation: pulse 2s infinite;
}

.ist-elementor-timeline-item.completed::before {
    background: #2563eb;
    box-shadow: 0 0 0 2px #2563eb;
}

.ist-elementor-timeline-item.completed::after {
    content: '✓';
    position: absolute;
    left: -2.35rem;
    top: 1.4rem;
    color: white;
    font-size: 10px;
    font-weight: bold;
    z-index: 3;
}

.ist-elementor-timeline-date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ist-elementor-timeline-date::before {
    content: '📅';
    font-size: 0.7rem;
}

.ist-elementor-timeline-status {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.ist-elementor-timeline-note {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Loading and Error States */
.ist-elementor-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.ist-elementor-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: ist-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.ist-elementor-error {
    margin: 2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #ef4444;
}

.ist-elementor-error h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .ist-elementor-input-group {
        flex-direction: column;
    }
    
    .ist-elementor-header {
        padding: 1.5rem;
    }
    
    .ist-elementor-form {
        padding: 1.5rem;
    }
    
    .ist-elementor-card,
    .ist-elementor-current-status,
    .ist-elementor-timeline-section {
        margin: 0 1rem 1rem;
    }
    
    .ist-elementor-info-grid {
        grid-template-columns: 1fr;
    }
    
    .ist-elementor-timeline {
        padding-left: 1.5rem;
    }
    
    .ist-elementor-timeline-item::before {
        left: -1.9rem;
    }
    
    .ist-elementor-timeline-item.completed::after {
        left: -1.85rem;
    }
}

@keyframes ist-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}