.flash-messages {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 480px;
    width: auto;
}

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    animation: flashSlideIn 0.25s var(--ease-out);
    cursor: pointer;
    transition: all 120ms var(--ease-in-out);
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.flash-message:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xl);
}

@keyframes flashSlideIn {
    from {
        transform: translateY(-16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-16px);
        opacity: 0;
    }
}

.flash-content {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-right: 12px;
}

.flash-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    opacity: 0.5;
    transition: opacity 120ms ease;
    flex-shrink: 0;
}

.flash-close:hover {
    opacity: 1;
}

.flash-notice,
.flash-info {
    border-color: #bfdbfe;
    color: #1e40af;
    background: #eff6ff;
}

.flash-notice .flash-close,
.flash-info .flash-close {
    color: #1e40af;
}

.flash-success {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.flash-success .flash-close {
    color: #166534;
}

.flash-alert,
.flash-error {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.flash-alert .flash-close,
.flash-error .flash-close {
    color: #991b1b;
}

.flash-warning {
    border-color: #fde68a;
    color: #92400e;
    background: #fffbeb;
}

.flash-warning .flash-close {
    color: #92400e;
}

@media (max-width: 768px) {
    .flash-messages {
        top: 8px;
        left: 8px;
        right: 8px;
        transform: none;
        max-width: none;
    }

    .flash-message {
        padding: 10px 14px;
        white-space: normal;
    }

    .flash-content {
        font-size: 13px;
    }
}
