:root {
    --eidos-blue: #003366;
    --eidos-light-blue: #0066cc;
    --eidos-accent: #00b4d8;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    max-width: 350px;
}

.custom-toast {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 15px;
    animation: slideInRight 0.3s ease-out;
}

.toast-header {
    border-bottom: none;
    padding: 15px 20px;
    color: white;
}

.toast-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.toast-header .btn-close:hover {
    opacity: 1;
}

.toast-body {
    padding: 20px;
    color: #333;
    font-weight: 500;
}

.toast-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Цветовые схемы для разных типов сообщений */
.toast-success .toast-header {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
}

.toast-error .toast-header {
    background: linear-gradient(135deg, var(--error-color) 0%, #e83e8c 100%);
}

.toast-warning .toast-header {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fd7e14 100%);
}

.toast-info .toast-header {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--eidos-accent) 100%);
}

/* Для использования в base.html (совместимость) */
.toast.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast.toast-info {
    border-left: 4px solid var(--eidos-blue);
}

/* Анимации */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}