#message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.message-card {
    position: relative;
    min-width: 300px;
    max-width: 450px;
    padding: 20px 25px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease-in-out;
}

.message-card.success {
    background-color: #d4edda;
    color: #155724;
}

.message-card.error {
    background-color: #f8d7da;
    color: #721c24;
}

.message-card.info {
    background-color: #cce5ff;
    color: #004085;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
