/* Customer Dashboard Styling */
.smmras-dashboard-widget {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.smmras-widget-title { /* replaces h3 qualification */
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Order Status Grid */
.smmras-order-status-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 15px -7px;
}

.smmras-order-card {
    flex: 1 1 220px;
    min-width: 220px;
    margin: 7px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.smmras-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-number {
    font-weight: 600;
    font-size: 16px;
    color: #23282d;
}

.order-date {
    color: #666;
    font-size: 13px;
    margin: 4px 0;
}

.order-total {
    font-size: 20px;
    font-weight: 600;
    color: #4CAF50;
    margin: 8px 0;
}

.order-smm-id {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
}

.order-status {
    margin: 8px 0;
    font-size: 14px;
    font-weight: 500;
}

.smmras-order-card .button {
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

/* Tracking Section */
.smmras-tracking-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.smmras-tracking-title { /* replaces h3 qualification */
    margin-top: 0;
    color: #23282d;
}

.smmras-tracking-details {
    display: flex;
    flex-wrap: wrap;
    margin: 15px -5px;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
}

.smmras-tracking-details > div {
    flex: 1 1 50%;
    min-width: 50%;
    margin: 5px;
}

.tracking-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tracking-item:last-child {
    border-bottom: none;
}

.tracking-label {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
}

.tracking-value {
    color: #333;
}

/* Timeline */
.smmras-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px 0;
    position: relative;
}

.smmras-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #ddd;
    z-index: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-icon {
    font-size: 28px;
    background: #fff;
    padding: 8px;
    border-radius: 50%;
    border: 3px solid #ddd;
    transition: all 0.3s;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.timeline-step.completed .step-icon {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.timeline-step.completed .step-label {
    color: #4CAF50;
    font-weight: 600;
}

.timeline-step.active .step-icon {
    border-color: #ff9800;
    background: #fff3e0;
    animation: pulse 2s infinite;
}

.timeline-step.active .step-label {
    color: #ff9800;
    font-weight: 600;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .smmras-tracking-details {
        flex-direction: column;
    }
    
    .smmras-timeline::before {
        left: 5%;
        right: 5%;
    }
    
    .step-icon {
        font-size: 20px;
        padding: 6px;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .smmras-order-status-grid {
        flex-direction: column;
    }
}
