/* Styles pour les notifications */
.notification-item {
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.notification-card {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

.notification-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--notification-color, #007bff), var(--notification-color-light, #66b0ff));
    border-radius: 4px 0 0 4px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: white;
    font-size: 18px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    color: #343a40;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    word-break: break-word;
}

.notification-time {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
}

.notification-time i {
    font-size: 11px;
}

.time-text {
    font-weight: 500;
}

.notification-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.badge-new {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4757;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 71, 87, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

.notification-actions {
    position: relative;
    z-index: 10;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Menu dropdown */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    padding: 8px 0;
    min-width: 180px;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #495057;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 6px 0;
}

/* États de notification */
.notification-card.unread {
    background: #f8f9ff;
    border-color: #e3e6ff;
}

.notification-card.important {
    border-color: #ffc107;
}

.notification-card.important::before {
    background: linear-gradient(to bottom, #ffc107, #ffd54f);
}

/* Responsive */
@media (max-width: 768px) {
    .notification-card {
        padding: 12px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    .notification-text {
        font-size: 13px;
    }
    
    .notification-time {
        font-size: 11px;
    }
}

/* Animation de suppression */
.notification-item.removing {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}