/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    background: #1A1A1A;
    border: 1px solid #333333;
    border-left: 4px solid;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: all;
    animation: slideInRight 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.closing {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

/* Types de notifications */
.notification.success {
    border-left-color: #4CAF50;
}

.notification.error {
    border-left-color: #F44336;
}

.notification.warning {
    border-left-color: #FF9800;
}

.notification.info {
    border-left-color: #2196F3;
}

.notification.neutral {
    border-left-color: #6B7C8E;
}

/* Icône */
.notification-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #4CAF50;
}

.notification.error .notification-icon {
    color: #F44336;
}

.notification.warning .notification-icon {
    color: #FF9800;
}

.notification.info .notification-icon {
    color: #2196F3;
}

.notification.neutral .notification-icon {
    color: #6B7C8E;
}

/* Contenu */
.notification-content {
    flex: 1;
}

.notification-title {
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.notification-message {
    color: #B0B0B0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Bouton de fermeture */
.notification-close {
    background: none;
    border: none;
    color: #666666;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.notification-close:hover {
    color: #FFFFFF;
}

/* Barre de progression */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    animation: progressBar linear forwards;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 480px) {
    #notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .notification {
        min-width: auto;
        max-width: none;
    }
}