.flash-messages {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    position: relative;
}

.flash-messages .error {
    padding: 7px;
    border-radius: 5px;
    border: 1px solid #f44336;
    margin: 0;
    font-size: 14px;
    color: #f44336;
    background-color: #ffdddd;
}

.flash-messages .success {
    padding: 7px;
    border-radius: 5px;
    border: 1px solid #4CAF50;
    margin: 0;
    font-size: 14px;
    color: #4CAF50;
    background-color: #ddffdd;
}

.flash-messages .warning {
    padding: 7px;
    border-radius: 5px;
    border: 1px solid #ff9800; /* Orange border for warning */
    margin: 0;
    font-size: 14px;
    color: #ff9800; /* Orange text for warning */
    background-color: #fff4e5; /* Light orange background for warning */
}

.flash-messages .info {
    padding: 7px;
    border-radius: 5px;
    border: 1px solid #2196F3; /* Blue border for info */
    margin: 0;
    font-size: 14px;
    color: #2196F3; /* Blue text for info */
    background-color: #e7f3ff; /* Light blue background for info */
}

.flash-messages .clear-button {
    background: #f5f5f5; /* Light background for the button */
    border: 1px solid #888; /* Border for the button */
    color: #888; /* Text color */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 10px; /* Position the button in the top-right corner */
    width: 20px; /* Set width for the round shape */
    height: 20px; /* Set height for the round shape */
    border-radius: 50%; /* Make the button round */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.flash-messages .clear-button:hover {
    background: #e0e0e0; /* Slightly darker background on hover */
    color: #000; /* Darker text color on hover */
    border-color: #000; /* Darker border on hover */
}

.error-message {
    display: none;
    padding: 7px;
    border-radius: 5px;
    margin: 0;
    font-size: 14px;
    color: #f44336;
}