/*	==================================================
		RUI DOS SANTOS / NORTON SPORT CLUB GENEVE
	==================================================
	
	Créée le 	: 02.04.2026
	Modifiée le : 02.04.2026
	
	Page : 
	./style/notifications.css

==================================================	*/

/* Conteneur des notifications - centré en haut */
.toast-container {
    position: fixed;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 800px;
    width: 90%;
}

/* Style de base des toasts */
.toast {
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

/* Types de notifications */
.toast.success {
    background: #a5f3bc;
    color: #333333;
    border: 1px solid #bbf7d0;
}
.toast.success::before { background: #22c55e; }

.toast.error {
    background: #f8a0a0;
    color: #333333;
    border: 1px solid #fecaca;
}
.toast.error::before { background: #ef4444; }

.toast.warning {
    background: #ffeb99;
    color: #333333;
    border: 1px solid #fde68a;
}
.toast.warning::before { background: #f59e0b; }

.toast.info {
    background: #b3d4ff;
    color: #333333;
    border: 1px solid #bfdbfe;
}
.toast.info::before { background: #3b82f6; }

/* Bouton fermer */
.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    font-size: 18px;
    padding: 0 5px;
}
.toast-close:hover { opacity: 1; }

/* Animation apparition - descend depuis le haut */
@keyframes slideDown {
    from { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* Animation disparition - remonte vers le haut */
@keyframes slideUp {
    from { 
        transform: translateY(0); 
        opacity: 1; 
    }
    to { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
}

.toast.hide {
    animation: slideUp 0.3s ease-in forwards;
}

.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.toast-confirm {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toast-confirm-content p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    text-align: center;
}

.toast-confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.toast-confirm-buttons .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.toast-confirm-buttons .btn-success {
    background: #28a745;
    color: #fff;
}

.toast-confirm-buttons .btn-secondary {
    background: #6c757d;
    color: #fff;
}