.messages {
    list-style-type: none;
    padding: 0;
}
.messages .success {
    color: green;
}
.messages .info {
    color: blue;
}
.messages .error {
    color: red;
}

.messages .info.hidden {
    display: none;
}

/* Default style for the message */
#connection_message_id.info {
    color: blue; /* Default color for informational messages */
    font-weight: bold;
}

/* Success style */
#connection_message_id.success {
    color: green; /* Green for success */
    font-weight: bold;
}

/* Error style */
#connection_message_id.error {
    color: red; /* Red for errors */
    font-weight: bold;
}

/* Hidden style */
#connection_message_id.hidden {
    display: none; /* Hide the message */
}


.message-container {
    position: fixed;
    top: 20px;       /* Adjust distance from the top */
    right: 20px;     /* Aligns the message box to the right */
    z-index: 9999;   /* Ensures it stays on top of other elements */
    width: 300px;    /* Adjust this based on your layout */
}

.alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #f8d7da; /* Default background (for error messages) */
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.btn-close {
    float: right;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.75;
    cursor: pointer;
}



.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

