/* ================================
   Notification System Styles
   ================================ */

.notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: var(--z-modal);
    max-width: 400px;
    width: 100%;
}

.notification {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary-color);
    overflow: hidden;
    position: relative;
}

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

.notification.hide {
    opacity: 0;
    transform: translateX(400px);
    pointer-events: none;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

.notification-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.notification-message {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition-fast);
    flex-shrink: 0;
    margin-top: -0.125rem;
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

/* Notification Types */
.notification-success {
    border-left-color: var(--success-color);
}

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

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

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

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

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

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

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

/* Progress bar for auto-close */
.notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: notification-progress 5s linear;
}

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

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .notification {
        background: var(--gray-800);
        color: white;
        border-left-color: var(--primary-color);
    }
    
    .notification-close:hover {
        background: var(--gray-700);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .notification {
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification.hide {
        transform: translateY(-100px);
    }
    
    .notification-content {
        padding: 0.875rem 1rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .notification {
        transition: opacity 0.2s ease;
        transform: none;
    }
    
    .notification.show {
        opacity: 1;
    }
    
    .notification.hide {
        opacity: 0;
    }
    
    .notification::after {
        animation: none;
    }
}
