/* NOXAI - Styles des Alertes Alpha */

/* ===== SECTION ALERTES ===== */
#alerts {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
    min-height: 100vh;
    padding: 20px;
}

.alerts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.alerts-container h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== BARRE DE FILTRES ===== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1a1f2e 0%, #252a3a 100%);
    border-radius: 12px;
    border: 1px solid #333;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 20px;
    color: #bbb;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(153, 69, 255, 0.1);
    border-color: #9945ff;
    color: #fff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
    border-color: #9945ff;
    color: #fff;
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.4);
}

.refresh-action .btn-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.refresh-action .btn-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(153, 69, 255, 0.5);
}

/* ===== LISTE DES ALERTES ===== */
.alert-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* ===== CARTES D'ALERTES ===== */
.alert-card {
    background: linear-gradient(135deg, #1a1f2e 0%, #252a3a 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9945ff 0%, #14f195 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #9945ff;
}

.alert-card:hover::before {
    opacity: 1;
}

/* Styles selon le potentiel */
.alert-card.très-élevé {
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.2);
}

.alert-card.élevé {
    border-color: #ffa502;
    box-shadow: 0 0 20px rgba(255, 165, 2, 0.2);
}

.alert-card.moyen {
    border-color: #3742fa;
    box-shadow: 0 0 20px rgba(55, 66, 250, 0.2);
}

/* ===== HEADER DE L'ALERTE ===== */
.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.alert-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.potential-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.potential-badge.très-élevé {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.potential-badge.élevé {
    background: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 165, 2, 0.3);
}

.potential-badge.moyen {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(55, 66, 250, 0.3);
}

.alert-time {
    color: #888;
    font-size: 12px;
    font-weight: 500;
}

/* ===== ICÔNE ET CONTENU ===== */
.alert-card {
    display: flex;
    gap: 15px;
}

.alert-icon {
    flex-shrink: 0;
}

.alert-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
}

.alert-content {
    flex: 1;
}

.alert-description {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* ===== STATISTIQUES ===== */
.alert-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.stat-label {
    color: #888;
    font-weight: 500;
}

.stat-value {
    color: #fff;
    font-weight: 600;
}

.stat-value.positive {
    color: #14f195;
}

.stat-value.negative {
    color: #ff4757;
}

/* ===== POTENTIEL ===== */
.alert-potential {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(153, 69, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(153, 69, 255, 0.2);
    margin-bottom: 15px;
}

.potential-text {
    color: #9945ff;
    font-weight: 600;
    font-size: 14px;
}

.potential-score {
    color: #14f195;
    font-weight: 700;
    font-size: 14px;
}

/* ===== ACTIONS ===== */
.alert-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.btn-alert-action {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-alert-action:hover {
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
    border-color: #9945ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 69, 255, 0.3);
}

.btn-alert-action i {
    font-size: 11px;
}

/* ===== ÉTATS SPÉCIAUX ===== */
.no-alerts, .alerts-loading, .alerts-error {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    grid-column: 1 / -1;
}

.no-alerts-icon, .error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-alerts-title, .error-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.no-alerts-text, .error-message {
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #9945ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.loading-text {
    color: #9945ff;
    font-weight: 500;
    font-size: 16px;
}

.btn-retry {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 69, 255, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .alert-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .alert-card {
        flex-direction: column;
        text-align: center;
    }
    
    .alert-icon {
        align-self: center;
    }
    
    .alert-stats {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== ANIMATIONS ===== */
.alert-card {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de pulsation pour les nouvelles alertes */
.alert-card.new {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(153, 69, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(153, 69, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(153, 69, 255, 0);
    }
}

/* Indicateur de dernière mise à jour */
.last-update {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 20px;
    font-style: italic;
}

/* ===== SYSTÈME DE FEEDBACK UTILISATEUR ===== */
.feedback-section {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.1) 0%, rgba(20, 241, 149, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(153, 69, 255, 0.2);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #9945ff;
    font-weight: 600;
    font-size: 14px;
}

.feedback-header i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.feedback-question {
    color: #bbb;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

.feedback-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-feedback {
    flex: 1;
    max-width: 120px;
    padding: 12px 8px;
    background: linear-gradient(135deg, #2a2d3a 0%, #3a3d4a 100%);
    border: 2px solid #444;
    border-radius: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.btn-feedback:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-feedback.profit {
    border-color: #14f195;
}

.btn-feedback.profit:hover,
.btn-feedback.profit.selected {
    background: linear-gradient(135deg, #14f195 0%, #0ed16f 100%);
    border-color: #14f195;
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.4);
}

.btn-feedback.loss {
    border-color: #ff4757;
}

.btn-feedback.loss:hover,
.btn-feedback.loss.selected {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

.btn-feedback.skip {
    border-color: #3742fa;
}

.btn-feedback.skip:hover,
.btn-feedback.skip.selected {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%);
    border-color: #3742fa;
    box-shadow: 0 0 20px rgba(55, 66, 250, 0.4);
}

.btn-feedback i {
    font-size: 16px;
}

.feedback-emoji {
    font-size: 18px;
    margin-top: 2px;
}

.btn-feedback.selected {
    animation: selectedPulse 1.5s infinite;
}

@keyframes selectedPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Détails du feedback */
.feedback-details {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.feedback-details.hidden {
    display: none;
}

.feedback-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.feedback-input-group label {
    color: #bbb;
    font-size: 13px;
    font-weight: 500;
    min-width: 120px;
}

.feedback-input {
    flex: 1;
    padding: 8px 12px;
    background: #1a1f2e;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.feedback-input:focus {
    outline: none;
    border-color: #9945ff;
    box-shadow: 0 0 10px rgba(153, 69, 255, 0.3);
}

.currency {
    color: #888;
    font-size: 13px;
    font-weight: 500;
    min-width: 20px;
}

.feedback-submit-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn-submit-feedback {
    padding: 10px 20px;
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(153, 69, 255, 0.4);
}

.btn-cancel-feedback {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #666;
    border-radius: 8px;
    color: #bbb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-feedback:hover {
    border-color: #999;
    color: #fff;
}

/* Badge feedback envoyé */
.feedback-sent-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #14f195 0%, #0ed16f 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(20, 241, 149, 0.3);
}

/* Notifications de feedback */
.feedback-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feedback-notification.show {
    transform: translateX(0);
}

.feedback-notification.success {
    background: linear-gradient(135deg, #14f195 0%, #0ed16f 100%);
    border: 1px solid #14f195;
}

.feedback-notification.error {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    border: 1px solid #ff4757;
}

.notification-emoji {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-message {
    line-height: 1.4;
}

/* Responsive pour le feedback */
@media (max-width: 768px) {
    .feedback-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-feedback {
        max-width: none;
        flex-direction: row;
        justify-content: center;
        padding: 10px 15px;
    }
    
    .feedback-input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .feedback-input-group label {
        min-width: auto;
    }
    
    .feedback-submit-group {
        flex-direction: column;
    }
    
    .feedback-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .feedback-notification.show {
        transform: translateY(0);
    }
}
