/* Custom Notifications */

.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 320px;
    pointer-events: all;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.removing {
    animation: slideOutRight 0.3s ease-in forwards;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--notification-color);
}

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

.notification.error {
    --notification-color: var(--error);
}

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

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

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.notification-icon .icon-wrapper {
    width: 16px;
    height: 16px;
}

.notification.success .notification-icon {
    background: rgba(16, 185, 129, 0.2);
}

.notification.error .notification-icon {
    background: rgba(239, 68, 68, 0.2);
}

.notification.warning .notification-icon {
    background: rgba(245, 158, 11, 0.2);
}

.notification.info .notification-icon {
    background: rgba(59, 130, 246, 0.2);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.notification-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-speed);
}

.notification-close:hover {
    opacity: 1;
}

.notification-close .icon-wrapper {
    width: 14px;
    height: 14px;
}

/* Progress bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--notification-color);
    opacity: 0.3;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

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

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Hover effect */
.notification:hover {
    transform: translateX(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.notification:hover .notification-progress {
    animation-play-state: paused;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
    }
}

/* Stacking effect for multiple notifications */
.notification:nth-child(2) {
    animation-delay: 0.1s;
}

.notification:nth-child(3) {
    animation-delay: 0.2s;
}

.notification:nth-child(4) {
    animation-delay: 0.3s;
}
