/* Стили для системы уведомлений */

.notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.notification {
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: all;
    overflow: hidden;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    position: relative;
}

.notification-icon {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}

.notification-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--background);
    color: var(--text-primary);
}

/* Типы уведомлений */
.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success .notification-icon {
    background: #28a745;
    color: white;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error .notification-icon {
    background: #dc3545;
    color: white;
}

.notification-info {
    border-left: 4px solid var(--primary-color);
}

.notification-info .notification-icon {
    background: var(--primary-color);
    color: white;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-warning .notification-icon {
    background: #ffc107;
    color: white;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .notifications-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification-content {
        padding: 0.875rem 1rem;
    }
    
    .notification-message {
        font-size: 0.9rem;
    }
    
    .notification-icon {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}
