/* === FLASH MESSAGES === */

/* Container for all flash messages */
.message-container {
    position: fixed;
    top: 120px; /* adjust if your navbar is taller */
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    justify-content: center;
    pointer-events: none; /* clicks pass through container */
    padding: 0 1rem;
}

/* Base message style */
.message {
    min-width: 280px;
    max-width: 600px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: auto; /* allow interaction with the message */
    animation: slideDown 0.5s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
}

/* Success message (green) → for login/logout */
.message.success {
    background-color: #f0fff0; /* very light lime background */
    color: #32cd32;            /* limegreen text */
    border: 1px solid #90ee90; /* light lime border */
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}
