.flash_container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 32rem;
    z-index: 10000;
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem 0;
    padding: 0.875rem 1.125rem;
    border-radius: 10px;
    border-left: 4px solid;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: flash-in 0.4s cubic-bezier(0.22, 1, 0.36, 1),
               flash-out 0.5s ease 6s forwards;
}

.flash-success {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.flash-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.flash::before {
    font-size: 1.1rem;
    line-height: 1;
}

.flash-success::before {
    content: "✓";
    font-weight: 700;
}

.flash-error::before {
    content: "!";
    font-weight: 700;
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flash-out {
    to {
        opacity: 0;
        transform: translateY(-8px);
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flash {
        animation: none;
    }
}