/* Add here all your CSS customizations */

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: inherit;
    word-wrap: break-word; /* Перенос длинных слов */
    max-height: 200px; /* Максимальная высота */
    overflow-y: auto; /* Скролл при необходимости */
}

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

.toast-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-left: 4px solid #1e7e34;
}

.toast-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    border-left: 4px solid #bd2130;
}

.toast-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    border-left: 4px solid #d39e00;
}

.toast-info {
    background: linear-gradient(135deg, #17a2b8, #6610f2);
    color: white;
    border-left: 4px solid #117a8b;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-right: 30px; /* Место для крестика */
    position: relative;
}

.toast-content i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px; /* Выравнивание с текстом */
}

.toast-message {
    flex: 1;
    font-weight: 500;
    word-wrap: break-word; /* Разрешаем перенос слов */
    line-height: 1.4;
}

.toast-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 50%;
}

.toast-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.toast-close:hover {
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 480px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        padding: 12px;
    }
    
    .toast-content {
        gap: 8px;
        padding-right: 25px; /* Меньше места для крестика на мобильных */
    }
    
    .toast-message {
        font-size: 14px;
    }
    
    .toast-close {
        width: 25px;
        height: 25px;
        font-size: 18px;
    }
}
