/**
 * Toast Notifications - Affichage dans l'interface Sunday
 * Pour les notifications quand l'utilisateur est sur la page
 */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: all;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #007bff;
}

.toast-notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.toast-notification.closing {
    animation: slideOutRight 0.3s ease forwards;
}

@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;
    }
}

.toast-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toast-avatar i {
    font-size: 20px;
    color: #007bff;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.toast-time {
    color: #999;
    font-size: 11px;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Types de notifications */
.toast-notification.task-created {
    border-left-color: #28a745;
}

.toast-notification.task-updated {
    border-left-color: #007bff;
}

.toast-notification.comment-added {
    border-left-color: #ffc107;
}

.toast-notification.task-deleted {
    border-left-color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
    }
    
    .toast-notification {
        min-width: auto;
        max-width: none;
    }
}
