/* notifications.css */
.notification-container {
    position: fixed;
    top: 80px; /* Adjust as needed, below the header */
    right: 20px;
    z-index: 100002;
    display: none; /* Hidden by default */
    width: auto; /* Adjust width based on content */
    max-width: 400px; /* Max width to prevent overly long notifications */
    background-color: #2D3748; /* Dark background from screenshot */
    color: #FFFFFF; /* White text color */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* To contain the green bar */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-20px);
}

.notification-container.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-size: 16px;
    line-height: 1.4;
}

.notification-bar {
    width: 8px; /* Green bar width */
    min-height: 100%;
    background-color: #38A169; /* Green color from screenshot */
    margin-right: 15px;
    border-radius: 8px 0 0 8px; /* Rounded corners only on the left side */
}

.notification-text {
    flex-grow: 1;
}

/* Specific styles for different types of notifications (e.g., error, warning) can be added here */
.notification-container.error .notification-bar {
    background-color: #E53E3E; /* Red for error */
}

.notification-container.warning .notification-bar {
    background-color: #DD6B20; /* Orange for warning */
}

@media (max-width: 768px) {
    .notification-container {
        max-width: 90%; /* Ширина уведомления на мобильных устройствах */
        top: 74px; /* Позиционирование сверху */
        right: 5%; /* Отступ справа */
        left: 5%; /* Отступ слева */
        transform: translateY(-74px); /* Для анимации */
    }

    .notification-container.show {
        transform: translateY(0);
    }

    .notification-content {
        padding: 10px 15px; /* Уменьшаем отступы */
        font-size: 14px; /* Уменьшаем размер шрифта */
    }

    .notification-bar {
        width: 5px; /* Уменьшаем ширину зеленой полосы */
        margin-right: 10px;
    }
}