/* Modern Notification System Styles */
.notification-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Container Positions */
.notification-container.top-right {
    top: 0;
    right: 0;
}

.notification-container.top-left {
    top: 0;
    left: 0;
}

.notification-container.bottom-right {
    bottom: 0;
    right: 0;
}

.notification-container.bottom-left {
    bottom: 0;
    left: 0;
}

/* Notification Base Styles */
.notification {
    width: 320px;
    max-width: 100%;
    padding: 4px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.4s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hiding {
    animation: slideOut 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

/* Notification Content */
.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .notification-content {
        background: rgba(30, 41, 59, 0.95);
        color: #e2e8f0;
    }
}

/* Notification Icon */
.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* Notification Message */
.notification-message {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    margin-right: 8px;
}

/* Close Button */
.notification-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
}

/* Progress Bar */
.notification-progress {
    width: 100%;
    height: 3px;
    margin-top: 4px;
    border-radius: 1.5px;
    width: 100%;
    transition: width linear;
}

/* Type-specific styles */
.notification-success {
    background: linear-gradient(135deg, #22c55e20, #16a34a20);
}

.notification-success .notification-icon {
    color: #16a34a;
}

.notification-success .notification-progress {
    background: #16a34a;
}

.notification-error {
    background: linear-gradient(135deg, #ef444420, #dc262620);
}

.notification-error .notification-icon {
    color: #dc2626;
}

.notification-error .notification-progress {
    background: #dc2626;
}

.notification-warning {
    background: linear-gradient(135deg, #f59e0b20, #d9770020);
}

.notification-warning .notification-icon {
    color: #d97706;
}

.notification-warning .notification-progress {
    background: #d97706;
}

.notification-info {
    background: linear-gradient(135deg, #3b82f620, #2563eb20);
}

.notification-info .notification-icon {
    color: #2563eb;
}

.notification-info .notification-progress {
    background: #2563eb;
}

/* Animations */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .notification-container {
        padding: 8px;
    }
    
    .notification {
        width: 100%;
        max-width: 100vw;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion) {
    .notification {
        transition: opacity 0.3s ease;
    }
    
    .notification.hiding {
        animation: none;
        opacity: 0;
    }
}