.demo-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.demo-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.demo-buttons button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Container de notificaciones */
#notification-container {
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    width: 100%;
    /* Agregamos propiedades para drag */
    user-select: none;
    transition: none; /* Removemos transición durante el drag */
}

#notification-container.dragging {
    transition: none;
    pointer-events: none;
}

#notification-container.dragging .notification {
    pointer-events: auto;
}

/* Estilos base de notificación */
.notification {
    padding: 5px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Animación inicial */
    transform: translateY(100px) scale(0.8);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

.notification:hover {
    transform: translateY(0) scale(1.02);
}

.notification.dragging {
    transform: rotate(5deg) scale(1.05);
    z-index: 1001;
    cursor: grabbing;
}

/* Handle para arrastrar */
.notification .drag-handle {
    position: absolute;
    top: 8px;
    left: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: grab;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification .drag-handle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.notification .drag-handle:active {
    cursor: grabbing;
}

/* Animaciones */
@keyframes slideUp {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
}

.notification.removing {
    animation: slideOut 0.3s ease forwards;
}

/* Tipos de notificación */
.notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.notification.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.notification.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

/* Barra de progreso */
.notification::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    animation: progress linear;
    border-radius: 0 0 12px 12px;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Icono de cerrar */
.notification .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.notification-content {
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    padding: 2px;
    box-sizing: border-box;
    border-radius: 8px;
    margin-left: 25px; /* Espacio para el drag handle */
}

.notification-content h5 {
    margin-bottom: 10px;
    word-wrap: break-word;
    font-size: 1rem;
}

.notification-content p {
    margin: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    #notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .demo-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-buttons button {
        width: 200px;
    }
}
