/* Shared toast notifications.
 *
 * Loaded by both layouts/head.html (admin + auth pages) and home/base.html
 * (home pages), because js/shared/toast.js is used by all of them.
 * Markup matches the .toast* classes emitted by js/shared/toast.js.
 */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    font-weight: 500;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast--success {
    border-left: 4px solid #16a34a;
}

.toast--danger {
    border-left: 4px solid #dc2626;
}

.toast--warning {
    border-left: 4px solid #d97706;
}

.toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: bold;
}

.toast--success .toast__icon {
    background: #16a34a;
    color: #fff;
}

.toast--danger .toast__icon {
    background: #dc2626;
    color: #fff;
}

.toast__message {
    flex: 1;
    line-height: 1.4;
}

.toast__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.toast__close:hover {
    color: #fff;
}

.toast--hiding {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
