/* Widget Flash Sale CSS */
.flash-sale-widget {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
    color: white;
    font-family: 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2s infinite;
}

.flash-sale-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(238, 90, 36, 0.5); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.flash-sale-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
}

.flash-icon {
    font-size: 20px;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.flash-text {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flash-sale-content {
    position: relative;
    z-index: 2;
}

.flash-sale-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.8;
    font-size: 14px;
}

.flash-price {
    font-size: 18px;
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.flash-sale-countdown {
    margin-bottom: 12px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 30px;
}

.time-value {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.time-label {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
}

.time-separator {
    font-size: 16px;
    font-weight: bold;
    margin: 0 5px;
}

.flash-diagnostic-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    width: 100%;
}

.flash-diagnostic-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Modal de diagnostic */
.flash-diagnostic-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    color: #333;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Styles pour le contenu du diagnostic */
.diagnostic-section {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    background: #f8f9fa;
}

.diagnostic-section h4 {
    margin: 0 0 10px 0;
    color: #007cba;
    font-size: 16px;
}

.diagnostic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.diagnostic-label {
    font-weight: 500;
}

.diagnostic-value {
    font-family: monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
}

.status-warning {
    color: #ffc107;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .flash-sale-widget {
        padding: 12px;
        margin: 8px 0;
    }
    
    .flash-sale-badge {
        font-size: 14px;
    }
    
    .flash-icon {
        font-size: 18px;
    }
    
    .time-value {
        font-size: 16px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
}
