/* Notifications stylisées avec progressbar */
.orientevent-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 25px 25px 25px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    border-left: 4px solid;
}

.orientevent-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.orientevent-notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

/* Couleurs SOLIDES */
.orientevent-notification.success {
    background: #10b981;
    border-left-color: #047857;
}

.orientevent-notification.error {
    background: #ef4444;
    border-left-color: #b91c1c;
}

.orientevent-notification.warning {
    background: #f59e0b;
    border-left-color: #b45309;
}

.orientevent-notification.info {
    background: #3b82f6;
    border-left-color: #1d4ed8;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.notification-content {
    flex: 1;
    line-height: 1.4;
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

/* Progressbar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 0 0 12px 12px;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform linear;
}

.notification-progress-bar.success {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.notification-progress-bar.error {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.notification-progress-bar.warning {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.notification-progress-bar.info {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

/* Animation de la progressbar */
@keyframes progressShrink {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* Effet de brillance sur la progressbar */
.notification-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Variante avec effet de pulsation */
.notification-progress-bar.pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: inherit;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .orientevent-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .orientevent-notification.show {
        transform: translateY(0);
    }
    
    .orientevent-notification.hide {
        transform: translateY(-100px);
    }
}

/* Assurer que le texte est toujours lisible */
.orientevent-notification * {
    color: white !important;
}