.toast-container {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    min-width: 280px;
    max-width: 380px;
    padding: 12px 16px 10px;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast--error {
    border-color: #fca5a5;
}

.toast--success {
    border-color: #86efac;
}

.toast--warning {
    border-color: #fdba74;
}

.toast__bar {
    margin-top: 10px;
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    position: relative;
}

.toast__bar-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f97316, #ef4444);
    transform-origin: left center;
    transform: scaleX(1);
}

.toast--success .toast__bar-inner {
    background: linear-gradient(90deg, #22c55e, #86efac);
}

.toast--warning .toast__bar-inner {
    background: linear-gradient(90deg, #f97316, #fdba74);
}

.toast--error .toast__bar-inner {
    background: linear-gradient(90deg, #ef4444, #fca5a5);
}

body.app-body.theme-light .toast {
    background: #ffffff;
    color: #111827;
    box-shadow: 3px 6px 24px rgba(148, 163, 184, 0.6);
}
