#flash-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 340px;
    pointer-events: none;
}

.flash-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #164e63;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    pointer-events: all;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(1.5rem);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark .flash-toast {
    background: #1f2937;
    border-color: #374151;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

.flash-toast.flash-show {
    opacity: 1;
    transform: translateX(0);
}

.flash-toast.flash-hiding {
    opacity: 0;
    transform: translateX(1.5rem);
}

.flash-icon {
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 0;
}

.flash-body {
    flex: 1;
    min-width: 0;
}

.flash-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 2px;
    line-height: 1.4;
}

.dark .flash-title {
    color: #ffffff;
}

.flash-message {
    font-size: 0.8125rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
}

.dark .flash-message {
    color: #9ca3af;
}

.flash-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    line-height: 0;
    transition: color 0.15s;
}

.flash-close:hover {
    color: #ff0000;
}

.dark .flash-close:hover {
    color: #e5e7eb;
}

.flash-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 0 0.5rem;
    animation: flash-shrink linear forwards;
}

@keyframes flash-shrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* type colors */
.flash-success .flash-icon {
    color: #16a34a;
}
.flash-success .flash-progress {
    background: #16a34a;
}

.flash-error .flash-icon {
    color: #dc2626;
}
.flash-error .flash-progress {
    background: #dc2626;
}

.flash-warning .flash-icon {
    color: #d97706;
}
.flash-warning .flash-progress {
    background: #d97706;
}

.flash-info .flash-icon {
    color: #2563eb;
}
.flash-info .flash-progress {
    background: #2563eb;
}
