/**
 * Système de notifications modernes pour ESAA
 * Styles pour les notifications toast et alertes
 */

/* Container principal pour les notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

/* Notification toast */
.notification-toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    padding: 0;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-out 4.7s forwards;
    border-left: 4px solid;
    overflow: hidden;
    position: relative;
}

/* Animation d'entrée */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation de sortie */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
    }
}

/* Contenu de la notification */
.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

/* Icône de la notification */
.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Corps de la notification */
.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #2c3e50;
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    word-wrap: break-word;
}

/* Bouton de fermeture */
.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}

.notification-close:hover {
    color: #333;
}

/* Types de notifications */
.notification-success {
    border-left-color: #28a745;
}

.notification-success .notification-icon {
    color: #28a745;
}

.notification-success .notification-title {
    color: #155724;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-error .notification-icon {
    color: #dc3545;
}

.notification-error .notification-title {
    color: #721c24;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-warning .notification-icon {
    color: #856404;
}

.notification-warning .notification-title {
    color: #856404;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification-info .notification-icon {
    color: #17a2b8;
}

.notification-info .notification-title {
    color: #0c5460;
}

/* Notifications pour candidats - styles spéciaux */
.notification-candidat {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.notification-candidat .notification-message {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-toast {
        min-width: auto;
        max-width: none;
    }
}

/* Styles pour les alertes inline (compatibilité avec Bootstrap) */
.alert-enhanced {
    border-radius: 8px;
    border: none;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    margin-bottom: 20px;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-enhanced.alert-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.alert-enhanced.alert-danger {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-enhanced.alert-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.alert-enhanced.alert-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.alert-enhanced .alert-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Styles pour les messages de validation de formulaire */
.form-notification {
    margin-top: 8px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-notification.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.form-notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.form-notification.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.form-notification.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

