/* Floating Notification System */
.notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    pointer-events: auto;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.3s ease-in;
}

/* Dark theme support */
[data-bs-theme="dark"] .notification {
    background: rgba(33, 37, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Notification types */
.notification.success {
    border-left: 4px solid var(--speedy3d-success);
}

.notification.error,
.notification.danger {
    border-left: 4px solid var(--speedy3d-danger);
}

.notification.warning {
    border-left: 4px solid var(--speedy3d-warning);
}

.notification.info {
    border-left: 4px solid var(--speedy3d-info);
}

/* Icon styling */
.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.notification.success .notification-icon {
    color: var(--speedy3d-success);
}

.notification.error .notification-icon,
.notification.danger .notification-icon {
    color: var(--speedy3d-danger);
}

.notification.warning .notification-icon {
    color: var(--speedy3d-warning);
}

.notification.info .notification-icon {
    color: var(--speedy3d-info);
}

/* Content styling */
.notification-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

/* Close button */
.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #495057;
}

[data-bs-theme="dark"] .notification-close {
    color: #adb5bd;
}

[data-bs-theme="dark"] .notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Progress bar for auto-dismiss */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

.notification.success .notification-progress {
    background: var(--speedy3d-success);
}

.notification.error .notification-progress,
.notification.danger .notification-progress {
    background: var(--speedy3d-danger);
}

.notification.warning .notification-progress {
    background: var(--speedy3d-warning);
}

.notification.info .notification-progress {
    background: var(--speedy3d-info);
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Hover to pause auto-dismiss */
.notification:hover .notification-progress {
    animation-play-state: paused;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .notification-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 8px;
        padding: 12px 16px;
        min-height: 50px;
    }
    
    .notification-content {
        font-size: 13px;
    }
    
    .notification-icon {
        font-size: 18px;
        width: 20px;
    }
}