.flash {
    position: relative;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    animation: flash-message-slide-in 0.3s ease-out;
    width: 100%;
}

.flash-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.flash.success {
    background: #e6fffa;
    color: var(--patitur-green-primary, #01e4bf);
    border: 1px solid #a5f3eb;
    font-weight: 600;
    font-size: 1.05em;
    box-shadow: 0px 4px 4px 0px #00000040;
}

.flash.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
    box-shadow: 0 2px 8px rgba(114, 28, 36, 0.1);
}

.flash.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border: 1px solid #ffd43b;
    box-shadow: 0 2px 8px rgba(133, 100, 4, 0.1);
}

.flash.info {
    background: #e6f7ff;
    color: #0c5460;
    border: 1px solid #b3e5fc;
    box-shadow: 0px 4px 4px 0px #00000040;
}

.close-button {
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 10px;
}

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

#flash-messages-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(90vw, 900px);
}
