/* Notification System - Toast-style notifications */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    pointer-events: none;
}

.notification {
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

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

.notification-hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification-icon {
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-message {
    flex: 1;
    color: var(--color-secondary);
    font-size: var(--font-size-md);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background-color: var(--color-active);
}

/* Success notifications */
.notification-success {
    border-left: 4px solid #4CAF50;
}

.notification-success .notification-icon {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

/* Error notifications */
.notification-error {
    border-left: 4px solid #f44336;
}

.notification-error .notification-icon {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
}

/* Warning notifications */
.notification-warning {
    border-left: 4px solid #ff9800;
}

.notification-warning .notification-icon {
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
}

/* Info notifications */
.notification-info {
    border-left: 4px solid #2196F3;
}

.notification-info .notification-icon {
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
    }
}

/* Animation keyframes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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