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

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 5px;
    border: 1px solid;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.flash-message:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        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: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

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

.flash-notice {
    border-color: hsl(221, 91%, 93%);
    color: hsl(210, 92%, 45%);
    background: hsl(208, 100%, 97%);
}

.flash-notice .flash-close {
    color: hsl(210, 92%, 45%);
}

.flash-success {
    border-color: hsl(145, 92%, 87%);
    color: hsl(140, 100%, 27%);
    background: hsl(143, 85%, 96%);
}

.flash-success .flash-close {
    color: hsl(140, 100%, 27%);
}

.flash-alert,
.flash-error {
    border-color: hsl(359, 100%, 94%);
    color: hsl(360, 100%, 45%);
    background: hsl(359, 100%, 97%);
}

.flash-alert .flash-close,
.flash-error .flash-close {
    color: hsl(360, 100%, 45%);
}

.flash-warning {
    border-color: hsl(49, 91%, 84%);
    color: hsl(31, 92%, 45%);
    background: hsl(49, 100%, 97%);
}

.flash-warning .flash-close {
    color: hsl(31, 92%, 45%);
}

.flash-info {
    border-color: hsl(221, 91%, 93%);
    color: hsl(210, 92%, 45%);
    background: hsl(208, 100%, 97%);
}

.flash-info .flash-close {
    color: hsl(210, 92%, 45%);
}

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

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

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