/* Модернизированные стили для Toastr */
.toast-title {
    font-weight: 700 !important;
    font-size: 16px;
    color: #2c3e50 !important;
    margin-bottom: 5px;
}

.toast-message {
    color: #34495e !important;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

/* Современные карточки с тенями */
.toast-success {
    background-color: #ffffff !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.15);
    border-left: 5px solid #2ecc71;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
}

.toast-error {
    background-color: #ffffff !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15);
    border-left: 5px solid #e74c3c;
    padding: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
}

.toast-warning {
    background-color: #ffffff !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.15);
    border-left: 5px solid #f1c40f;
    padding: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
}

.toast-info {
    background-color: #ffffff !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
    border-left: 5px solid #3498db;
    padding: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Иконки */
.toast-success:before {
    content: "✓";
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 20px;
    color: #2ecc71;
    font-weight: bold;
}

.toast-error:before {
    content: "✗";
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 20px;
    color: #e74c3c;
    font-weight: bold;
}

.toast-warning:before {
    content: "⚠";
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 20px;
    color: #f1c40f;
    font-weight: bold;
}

.toast-info:before {
    content: "ℹ";
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 20px;
    color: #3498db;
    font-weight: bold;
}

/* Сдвигаем контент для иконок */
.toast-success .toast-title,
.toast-success .toast-message {
    margin-left: 30px;
}

.toast-error .toast-title,
.toast-error .toast-message {
    margin-left: 30px;
}

.toast-warning .toast-title,
.toast-warning .toast-message {
    margin-left: 30px;
}

.toast-info .toast-title,
.toast-info .toast-message {
    margin-left: 30px;
}

/* Кнопка закрытия */
.toast-close-button {
    color: #95a5a6 !important;
    font-weight: bold;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.toast-close-button:hover {
    color: #7f8c8d !important;
    opacity: 1;
}

/* Прогресс бар */
.toast-progress {
    height: 3px;
    border-radius: 0 0 12px 12px;
    opacity: 0.8;
}

.toast-success .toast-progress {
    background: linear-gradient(90deg, #2ecc71, #27ae60) !important;
}

.toast-error .toast-progress {
    background: linear-gradient(90deg, #e74c3c, #c0392b) !important;
}

.toast-warning .toast-progress {
    background: linear-gradient(90deg, #f1c40f, #f39c12) !important;
}

.toast-info .toast-progress {
    background: linear-gradient(90deg, #3498db, #2980b9) !important;
}

/* Анимации */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

#toast-container > div {
    animation: fadeInRight 0.3s ease-out;
}

#toast-container > div.animate-out {
    animation: fadeOutRight 0.3s ease-in forwards;
}

/* Адаптивность */
@media (max-width: 768px) {
    .toast-title {
        font-size: 15px;
    }
    
    .toast-message {
        font-size: 13px;
    }
    
    #toast-container {
        width: 90% !important;
        margin: 10px !important;
    }
    
    #toast-container > div {
        width: 100% !important;
        margin-bottom: 10px;
        padding: 15px;
    }
}