/* ===== NOTIFICATION SYSTEM ===== */

/* Conteneur des notifications */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Message de notification */
.notification {
    padding: 16px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    word-wrap: break-word;
    word-break: break-word;
}

/* Icône dans la notification */
.notification-icon {
    flex-shrink: 0;
    font-size: 18px;
    margin-top: 2px;
}

/* Texte de la notification */
.notification-text {
    flex: 1;
}

/* Bouton de fermeture */
.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Types de notifications */

/* Succès */
.notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.success .notification-close {
    color: #155724;
}

/* Erreur */
.notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification.error .notification-close {
    color: #721c24;
}

/* Avertissement */
.notification.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.notification.warning .notification-close {
    color: #856404;
}

/* Information */
.notification.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.notification.info .notification-close {
    color: #0c5460;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification.removing {
    animation: slideOutRight 0.3s ease-in;
}

/* ===== MODAL DE CONFIRMATION ===== */

.confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.confirmation-modal {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    padding: 24px;
    animation: modalSlideIn 0.3s ease-out;
}

.confirmation-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

.confirmation-modal-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.confirmation-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirmation-modal-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.confirmation-modal-btn.cancel {
    background-color: #e9ecef;
    color: #333;
}

.confirmation-modal-btn.cancel:hover {
    background-color: #dee2e6;
}

.confirmation-modal-btn.confirm {
    background-color: #dc3545;
    color: white;
}

.confirmation-modal-btn.confirm:hover {
    background-color: #c82333;
}

.confirmation-modal-btn.confirm.danger {
    background-color: #dc3545;
}

.confirmation-modal-btn.confirm.success {
    background-color: #28a745;
}

.confirmation-modal-btn.confirm.success:hover {
    background-color: #218838;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .notifications-container {
        max-width: 100%;
        left: 10px;
        right: 10px;
        top: 10px;
    }

    .notification {
        font-size: 13px;
        padding: 14px 16px;
    }

    .confirmation-modal {
        width: 95%;
        padding: 20px;
    }
}
