/* Notification System Styles */

.notification {
    position: fixed;
    z-index: 9999;
    min-width: 320px;
    max-width: 450px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.notification-message {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
}

.notification-description {
    margin: 0;
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.notification-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--text-secondary);
}

/* Notification Type Colors */

.notification-success .notification-icon {
    background: rgba(0, 200, 81, 0.1);
}

.notification-error .notification-icon {
    background: rgba(255, 68, 68, 0.1);
}

.notification-info .notification-icon {
    background: rgba(33, 150, 243, 0.1);
}

.notification-warning .notification-icon {
    background: rgba(255, 152, 0, 0.1);
}

/* Animations */

@keyframes slide-in-right {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Position Variants */

.notification[data-position="top-left"] {
    animation: slide-in-left 0.3s ease;
}

.notification[data-position="top-right"] {
    animation: slide-in-right 0.3s ease;
}

/* Mobile Responsive */

@media (max-width: 640px) {
    .notification {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    .notification[data-position="top-center"] {
        transform: translateY(-120%);
    }
    
    .notification[data-position="top-center"].show {
        transform: translateY(0);
    }
}

/* Dark Mode Support */

@media (prefers-color-scheme: dark) {
    .notification {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .notification-title {
        color: rgba(255, 255, 255, 0.95);
    }
    
    .notification-message {
        color: rgba(255, 255, 255, 0.85);
    }
    
    .notification-description {
        color: rgba(255, 255, 255, 0.7);
    }
}
